<86>Dec 30 00:01:43 userdel[3791353]: delete user 'rooter' <86>Dec 30 00:01:43 userdel[3791353]: removed group 'rooter' owned by 'rooter' <86>Dec 30 00:01:43 userdel[3791353]: removed shadow group 'rooter' owned by 'rooter' <86>Dec 30 00:01:43 groupadd[3791361]: group added to /etc/group: name=rooter, GID=615 <86>Dec 30 00:01:43 groupadd[3791361]: group added to /etc/gshadow: name=rooter <86>Dec 30 00:01:43 groupadd[3791361]: new group: name=rooter, GID=615 <86>Dec 30 00:01:43 useradd[3791367]: new user: name=rooter, UID=615, GID=615, home=/root, shell=/bin/bash <86>Dec 30 00:01:43 userdel[3791377]: delete user 'builder' <86>Dec 30 00:01:43 userdel[3791377]: removed group 'builder' owned by 'builder' <86>Dec 30 00:01:43 userdel[3791377]: removed shadow group 'builder' owned by 'builder' <86>Dec 30 00:01:43 groupadd[3791384]: group added to /etc/group: name=builder, GID=616 <86>Dec 30 00:01:43 groupadd[3791384]: group added to /etc/gshadow: name=builder <86>Dec 30 00:01:43 groupadd[3791384]: new group: name=builder, GID=616 <86>Dec 30 00:01:43 useradd[3791388]: new user: name=builder, UID=616, GID=616, home=/usr/src, shell=/bin/bash <13>Dec 30 00:01:48 rpmi: rpm-macros-valgrind-0.2-alt1 sisyphus+233110.100.1.1 1561384303 installed <13>Dec 30 00:01:51 rpmi: libboost_system1.77.0-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:51 rpmi: libgdbm-1.8.3-alt10 sisyphus+278100.1600.1.1 1626058413 installed <13>Dec 30 00:01:51 rpmi: libidn2-2.3.2-alt1 sisyphus+281238.100.1.2 1627476321 installed <13>Dec 30 00:01:51 rpmi: libboost_atomic1.77.0-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:51 rpmi: libboost_contract1.77.0-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:51 rpmi: libboost_chrono1.77.0-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:51 rpmi: libboost_timer1.77.0-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:51 rpmi: libboost_thread1.77.0-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:51 rpmi: libboost_type_erasure1.77.0-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:51 rpmi: libboost_filesystem1.77.0-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:55 rpmi: valgrind-3.17.0-alt3 sisyphus+284325.100.1.1 1630488680 installed <13>Dec 30 00:01:55 rpmi: libyaml2-0.2.5-alt1 sisyphus+278391.100.1.1 1626094928 installed <13>Dec 30 00:01:55 rpmi: libyaml-cpp0.7-0.7.0-alt1 sisyphus+288885.100.1.1 1636112671 installed <13>Dec 30 00:01:55 rpmi: libstemmer-2.0.0-alt1 sisyphus+278406.100.1.1 1626096572 installed <13>Dec 30 00:01:55 rpmi: libsnappy-1.1.7-alt1 sisyphus+276400.100.1.2 1625016393 installed <13>Dec 30 00:01:55 rpmi: libpython-2.7.18-alt8 sisyphus+286676.100.1.1 1633726916 installed <13>Dec 30 00:01:55 rpmi: python2-base-2.7.18-alt8 sisyphus+286676.100.1.1 1633726916 installed <13>Dec 30 00:01:55 rpmi: libpcrecpp3-8.45-alt2 sisyphus+283722.100.1.2 1629848198 installed <13>Dec 30 00:01:55 rpmi: libpcre16-8.45-alt2 sisyphus+283722.100.1.2 1629848198 installed <13>Dec 30 00:01:55 rpmi: pcretest-8.45-alt2 sisyphus+283722.100.1.2 1629848198 installed <13>Dec 30 00:01:55 rpmi: libpcre-devel-8.45-alt2 sisyphus+283722.100.1.2 1629848198 installed <13>Dec 30 00:01:55 rpmi: libunwind-1.5.0-alt2 sisyphus+285898.300.3.1 1632505140 installed <13>Dec 30 00:01:55 rpmi: libgperftools-2.9.1-alt1 sisyphus+277248.100.1.1 1625421068 installed <13>Dec 30 00:01:55 rpmi: libexpat-2.4.1-alt2 sisyphus+291954.100.1.1 1639496332 installed <13>Dec 30 00:01:55 rpmi: liblz4-1:1.9.3-alt1 sisyphus+278100.4000.1.1 1626059441 installed <13>Dec 30 00:01:55 rpmi: libsystemd-1:249.7-alt8 sisyphus+292713.100.1.1 1640630186 installed <13>Dec 30 00:01:55 rpmi: libdbus-1.12.20-alt1 sisyphus+281278.100.1.1 1627484261 installed <13>Dec 30 00:01:55 rpmi: libpcap0.8-2:1.9.1-alt2 sisyphus+278380.100.1.1 1626093290 installed <13>Dec 30 00:01:55 rpmi: publicsuffix-list-dafsa-20210929-alt1 sisyphus+286161.100.1.1 1632988273 installed <13>Dec 30 00:01:55 rpmi: libpsl-0.21.1-alt2 sisyphus+279461.100.1.1 1626547547 installed <13>Dec 30 00:01:55 rpmi: libnghttp2-1.46.0-alt1 sisyphus+292749.100.1.1 1640705819 installed <13>Dec 30 00:01:55 rpmi: openldap-common-2.4.59-alt1 sisyphus+282933.100.1.1 1629124747 installed <13>Dec 30 00:01:55 rpmi: libverto-0.3.2-alt1_1 sisyphus+279289.100.1.3 1626493868 installed <13>Dec 30 00:01:55 rpmi: liblmdb-0.9.23-alt1 sisyphus+275369.100.1.2 1624493869 installed <13>Dec 30 00:01:55 rpmi: libkeyutils-1.6.3-alt1 sisyphus+266061.100.1.1 1612919566 installed <13>Dec 30 00:01:55 rpmi: libcom_err-1.46.4.0.5.4cda-alt1 sisyphus+283826.100.1.1 1629975345 installed <13>Dec 30 00:01:55 rpmi: libbrotlicommon-1.0.9-alt2 sisyphus+278430.100.1.2 1626213212 installed <13>Dec 30 00:01:55 rpmi: libbrotlidec-1.0.9-alt2 sisyphus+278430.100.1.2 1626213212 installed <13>Dec 30 00:01:55 rpmi: libboost_program_options1.77.0-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:55 rpmi: gcc-c++-common-1.4.27-alt1 sisyphus+278099.1300.1.1 1626028636 installed <13>Dec 30 00:01:55 rpmi: libstdc++11-devel-11.2.1-alt2 sisyphus+291192.100.1.1 1638461683 installed <13>Dec 30 00:01:56 rpmi: gcc11-c++-11.2.1-alt2 sisyphus+291192.100.1.1 1638461683 installed <13>Dec 30 00:01:56 rpmi: libp11-kit-0.23.15-alt2 sisyphus+287552.300.2.1 1634541413 installed <13>Dec 30 00:01:56 rpmi: libtasn1-4.17.0-alt2 sisyphus+285706.100.1.1 1632328563 installed <13>Dec 30 00:01:56 rpmi: libboost_context1.77.0-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:56 rpmi: libboost_fiber1.77.0-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:56 rpmi: libboost_stacktrace1.77.0-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:56 rpmi: libboost_nowide1.77.0-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:56 rpmi: libboost_test1.77.0-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:56 rpmi: libboost_serialization1.77.0-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:56 rpmi: libboost_random1.77.0-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:56 rpmi: libboost_iostreams1.77.0-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:56 rpmi: libboost_json1.77.0-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:56 rpmi: libboost_regex1.77.0-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:56 rpmi: libboost_graph1.77.0-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:56 rpmi: libboost_date_time1.77.0-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:56 rpmi: libboost_container1.77.0-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:58 rpmi: boost-devel-headers-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:58 rpmi: boost-devel-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:58 rpmi: bc-1:1.07.1-alt1 sisyphus+278100.400.1.1 1626056612 installed <13>Dec 30 00:01:58 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+278157.100.2.1 1626055790 installed <13>Dec 30 00:01:58 rpmi: alternatives-0.5.1-alt1 sisyphus+278157.100.2.1 1626055790 installed <13>Dec 30 00:01:58 rpmi: ca-certificates-2021.10.06-alt1 sisyphus+286526.200.1.1 1633528578 installed <13>Dec 30 00:01:58 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Dec 30 00:01:58 rpmi: p11-kit-trust-0.23.15-alt2 sisyphus+287552.300.2.1 1634541413 installed <13>Dec 30 00:01:58 rpmi: libcrypto1.1-1.1.1l-alt2 sisyphus+287339.100.1.1 1634383589 installed <13>Dec 30 00:01:58 rpmi: libssl1.1-1.1.1l-alt2 sisyphus+287339.100.1.1 1634383589 installed <13>Dec 30 00:01:58 rpmi: python3-3.9.9-alt1 sisyphus+291125.100.2.1 1638385948 installed <13>Dec 30 00:01:59 rpmi: python3-base-3.9.9-alt1 sisyphus+291125.100.2.1 1638385948 installed <13>Dec 30 00:01:59 rpmi: python-modules-encodings-2.7.18-alt8 sisyphus+286676.100.1.1 1633726916 installed <13>Dec 30 00:01:59 rpmi: python-modules-compiler-2.7.18-alt8 sisyphus+286676.100.1.1 1633726916 installed <13>Dec 30 00:01:59 rpmi: python-modules-email-2.7.18-alt8 sisyphus+286676.100.1.1 1633726916 installed <13>Dec 30 00:01:59 rpmi: python-modules-unittest-2.7.18-alt8 sisyphus+286676.100.1.1 1633726916 installed <13>Dec 30 00:01:59 rpmi: python-modules-2.7.18-alt8 sisyphus+286676.100.1.1 1633726916 installed <86>Dec 30 00:01:59 groupadd[3795832]: group added to /etc/group: name=_keytab, GID=499 <86>Dec 30 00:01:59 groupadd[3795832]: group added to /etc/gshadow: name=_keytab <86>Dec 30 00:01:59 groupadd[3795832]: new group: name=_keytab, GID=499 <13>Dec 30 00:01:59 rpmi: libkrb5-1.19.2-alt2 sisyphus+281652.100.1.1 1627900207 installed <86>Dec 30 00:01:59 groupadd[3795838]: group added to /etc/group: name=sasl, GID=498 <86>Dec 30 00:01:59 groupadd[3795838]: group added to /etc/gshadow: name=sasl <86>Dec 30 00:01:59 groupadd[3795838]: new group: name=sasl, GID=498 <13>Dec 30 00:01:59 rpmi: libsasl2-3-2.1.27-alt2.2 sisyphus+282040.40.2.1 1628929840 installed <13>Dec 30 00:01:59 rpmi: libldap-2.4.59-alt1 sisyphus+282933.100.1.1 1629124747 installed <13>Dec 30 00:01:59 rpmi: libcurl-7.80.0-alt1 sisyphus+290333.100.1.1 1637428403 installed <13>Dec 30 00:01:59 rpmi: python3-module-pymongo-3.8.0-alt2 sisyphus+281201.100.1.1 1627463452 installed <13>Dec 30 00:01:59 rpmi: python3-module-bson-3.8.0-alt2 sisyphus+281201.100.1.1 1627463452 installed <13>Dec 30 00:01:59 rpmi: libcurl-devel-7.80.0-alt1 sisyphus+290333.100.1.1 1637428403 installed <13>Dec 30 00:01:59 rpmi: libsasl2-devel-2.1.27-alt2.2 sisyphus+282040.40.2.1 1628929840 installed <13>Dec 30 00:01:59 rpmi: python-modules-json-2.7.18-alt8 sisyphus+286676.100.1.1 1633726916 installed <13>Dec 30 00:01:59 rpmi: python3-module-Cheetah-3.2.6-alt1 sisyphus+286570.100.1.1 1633588001 installed <13>Dec 30 00:01:59 rpmi: python3-module-pkg_resources-1:59.6.0-alt1 sisyphus+291992.100.1.1 1639555592 installed <13>Dec 30 00:01:59 rpmi: python3-module-psutil-5.8.0-alt1 sisyphus+277411.100.1.1 1625535804 installed <13>Dec 30 00:01:59 rpmi: python3-module-yaml-5.4.1-alt2 sisyphus+281629.100.1.1 1627893015 installed <13>Dec 30 00:01:59 rpmi: scons-4.0.1-alt1 sisyphus+276030.100.2.2 1624920187 installed <13>Dec 30 00:01:59 rpmi: libssl-devel-1.1.1l-alt2 sisyphus+287339.100.1.1 1634383589 installed <13>Dec 30 00:01:59 rpmi: boost-filesystem-devel-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:59 rpmi: boost-program_options-devel-1:1.77.0-alt3 sisyphus+291991.60.5.1 1639639817 installed <13>Dec 30 00:01:59 rpmi: gcc-c++-11-alt1 sisyphus+285602.400.1.1 1632238564 installed <13>Dec 30 00:01:59 rpmi: libpcap-devel-2:1.9.1-alt2 sisyphus+278380.100.1.1 1626093290 installed <13>Dec 30 00:02:00 rpmi: libsystemd-devel-1:249.7-alt8 sisyphus+292713.100.1.1 1640630186 installed <13>Dec 30 00:02:00 rpmi: libgperftools-devel-2.9.1-alt1 sisyphus+277248.100.1.1 1625421068 installed <13>Dec 30 00:02:00 rpmi: libpcrecpp-devel-8.45-alt2 sisyphus+283722.100.1.2 1629848198 installed <13>Dec 30 00:02:00 rpmi: libsnappy-devel-1.1.7-alt1 sisyphus+276400.100.1.2 1625016393 installed <13>Dec 30 00:02:00 rpmi: libstemmer-devel-2.0.0-alt1 sisyphus+278406.100.1.1 1626096572 installed <13>Dec 30 00:02:00 rpmi: libyaml-cpp-devel-0.7.0-alt1 sisyphus+288885.100.1.1 1636112671 installed <13>Dec 30 00:02:00 rpmi: valgrind-devel-3.17.0-alt3 sisyphus+284325.100.1.1 1630488680 installed <13>Dec 30 00:02:00 rpmi: libreadline-devel-7.0.3-alt4 sisyphus+283725.100.1.2 1629849376 installed <13>Dec 30 00:02:00 rpmi: zlib-devel-1.2.11-alt2 sisyphus+283721.100.1.1 1629847002 installed <13>Dec 30 00:02:00 rpmi: liblzma-devel-5.2.5-alt3.1 sisyphus+291400.100.1.1 1638634809 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/mongo-4.4.10-alt1.nosrc.rpm (w1.gzdio) Installing mongo-4.4.10-alt1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.68344 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf mongo-4.4.10 + echo 'Source #0 (mongo-4.4.10.tar):' Source #0 (mongo-4.4.10.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/mongo-4.4.10.tar + cd mongo-4.4.10 + /bin/chmod -c -Rf u+rwX,go-w . + sed -i 's/\r//' README + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.68344 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd mongo-4.4.10 ++ pkg-config --cflags libpcrecpp + scons -j 4 --use-system-tcmalloc --use-system-pcre --use-system-snappy --use-system-valgrind --use-system-zlib --use-system-stemmer --use-system-yaml --nostrip --use-sasl-client --wiredtiger=on --ssl=on MONGO_VERSION=4.4.10-alt1 --disable-warnings-as-errors 'CCFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre' --install-mode=legacy core scons: Reading SConscript files ... scons: running with args /usr/bin/python3 /usr/bin/scons -j 4 --use-system-tcmalloc --use-system-pcre --use-system-snappy --use-system-valgrind --use-system-zlib --use-system-stemmer --use-system-yaml --nostrip --use-sasl-client --wiredtiger=on --ssl=on MONGO_VERSION=4.4.10-alt1 --disable-warnings-as-errors CCFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre --install-mode=legacy core Mkdir("build/scons") scons version: 4.0.1 python version: 3 9 9 'final' 0 CC is gcc gcc found in $PATH at /usr/bin/gcc /usr/bin/gcc resolves to /usr/bin/gcc_wrapper CXX is g++ g++ found in $PATH at /usr/bin/g++ /usr/bin/g++ resolves to /usr/bin/gcc_wrapper Checking whether the C compiler works... yes Checking whether the C++ compiler works... yes Checking that the C++ compiler can link a C++ program... yes Checking if C++ compiler "g++" is GCC... yes Checking if C compiler "gcc" is GCC... yes Detected a x86_64 processor Checking if target OS linux is supported by the toolchain... yes Checking if C compiler is GCC 8.2 or newer...yes Checking if C++ compiler is GCC 8.2 or newer...yes Checking if C compiler supports -Wno-unused-local-typedefs... yes Checking if C compiler supports -Wno-unused-function... yes Checking if C compiler supports -Wno-unused-private-field... no Checking if C compiler supports -Wno-deprecated-declarations... yes Checking if C compiler supports -Wno-tautological-constant-out-of-range-compare... no Checking if C compiler supports -Wno-tautological-constant-compare... no Checking if C compiler supports -Wno-tautological-unsigned-zero-compare... no Checking if C compiler supports -Wno-tautological-unsigned-enum-zero-compare... no Checking if C compiler supports -Wno-unused-const-variable... yes Checking if C compiler supports -Wno-unused-but-set-variable... yes Checking if C compiler supports -Wno-missing-braces... yes Checking if C compiler supports -Wno-inconsistent-missing-override... no Checking if C compiler supports -Wno-potentially-evaluated-expression... no Checking if C++ compiler supports -Wpessimizing-move... yes Checking if C++ compiler supports -Wredundant-move... yes Checking if C++ compiler supports -Wno-maybe-uninitialized... yes Checking if C++ compiler supports -Wno-undefined-var-template... no Checking if C++ compiler supports -Wno-instantiation-after-specialization... no Checking if C compiler supports -Wno-unused-lambda-capture... no Checking if C compiler supports -Wno-exceptions... yes Checking if C++ compiler supports -fsized-deallocation... yes Checking if C++ compiler supports -Wno-defaulted-function-deleted... no Checking if C++ compiler supports -Wunused-exception-parameter... no Checking -Wnon-virtual-dtor for false positives... no Checking if C compiler supports -fstack-protector-strong... yes Checking if we are using libstdc++... yes Checking if C++ compiler supports -std=c++17... yes Checking if C compiler supports -std=c11... yes WARNING: System versions of C++ libraries must be compiled with C++14/17 support Checking for C++17... yes Checking for memset_s... no Checking for C function strnlen()... yes Checking for libstdc++ 5.3.0 or better... yes Checking if we are on a POSIX system... yes Checking if the POSIX monotonic clock is supported... yes Checking off_t is 8 bytes... yes Checking if linker supports -fuse-ld=lld... no Checking if linker supports -fuse-ld=gold... yes Checking if linker supports -Wl,--no-threads... yes 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... yes 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 if pthread_setname_np is supported... yes Checking for SSLeay_version(0) in C library crypto... yes Checking for SSL_version(NULL) in C library ssl... yes Checking that linking to OpenSSL works...yes Checking whether FIPS_mode_set is declared... yes Checking whether d2i_ASN1_SEQUENCE_ANY is declared... yes Checking if SSL_[CTX_]_set_ecdh_auto is supported... yes Checking if EC_KEY_new_by_curve_name is supported... yes Using SSL Provider: openssl Checking for C library pcre... yes Checking for C library pcrecpp... yes Checking for C library snappy... yes Checking for C library z... yes Checking for C library stemmer... yes Checking for C library yaml-cpp... yes Checking for C library lzma... 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 for sasl_version_info(0, 0, 0, 0, 0, 0) in C library sasl2... yes Checking for C library tcmalloc... yes Checking if std::atomic works... yes Checking if std::atomic works... yes Checking if std::atomic works... yes Checking if std::atomic works... yes Checking for extended alignment 64 for concurrency types... yes Checking for mongoc_get_major_version() in C library mongoc-1.0... no Checking for curl_global_init(0) in C library curl... yes Checking for curl_global_init(0) in C library curl... yes Checking for C header file sys/sdt.h... no Checking for C function fallocate()... yes Checking for C function sync_file_range()... yes Checking for C header file x86intrin.h... yes Checking for C header file arm_neon.h... no scons: done reading SConscript files. scons: Building targets ... Generating build/opt/mongo/db/snapshot_window_options_gen.cpp Generating build/opt/mongo/db/query/query_knobs_gen.cpp Generating build/opt/mongo/db/ops/write_ops_gen.cpp /usr/bin/python3 src/mongo/db/auth/generate_action_types.py src/mongo/db/auth/action_types.txt build/opt/mongo/db/auth/action_type_gen.h build/opt/mongo/db/auth/action_type_gen.cpp Generating build/opt/mongo/db/read_write_concern_provenance_base_gen.cpp Generating build/opt/mongo/db/logical_session_id_gen.cpp Generating build/opt/mongo/client/hedging_mode_gen.cpp Generating build/opt/mongo/db/pipeline/exchange_spec_gen.cpp Generating build/opt/mongo/s/database_version_gen.cpp Generating build/opt/mongo/db/ops/single_write_result_gen.cpp Generating build/opt/mongo/client/read_preference_gen.cpp Generating build/opt/mongo/db/generic_cursor_gen.cpp /usr/bin/python3 src/mongo/base/generate_error_codes.py src/mongo/base/error_codes.yml src/mongo/base/error_codes.tpl.h build/opt/mongo/base/error_codes.h Generating build/opt/mongo/db/pipeline/runtime_constants_gen.cpp Generating build/opt/mongo/db/query/tailable_mode_gen.cpp Generating build/opt/mongo/db/repl/oplog_entry_gen.cpp Creating 'build/opt/mongo/config.h' Generating build/opt/mongo/db/repl/apply_ops_gen.cpp Generating build/opt/mongo/s/catalog/type_chunk_base_gen.cpp /usr/bin/python3 src/mongo/base/generate_error_codes.py src/mongo/base/error_codes.yml src/mongo/base/error_codes.tpl.cpp build/opt/mongo/base/error_codes.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rbnf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/rbnf.cpp gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int8.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int8.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C Generating build/opt/mongo/s/query/async_results_merger_params_gen.cpp Generating build/opt/mongo/db/repl/optime_base_gen.cpp Generating build/opt/mongo/rpc/topology_version_gen.cpp Generating build/opt/mongo/db/repl/repl_set_config_gen.cpp g++ -o build/opt/mongo/db/snapshot_window_options_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/snapshot_window_options_gen.cpp g++ -o build/opt/mongo/db/s/config/configsvr_drop_collection_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_drop_collection_command.cpp Generating build/opt/mongo/db/repl/repl_settings_gen.cpp g++ -o build/opt/mongo/db/commands/write_commands/write_commands_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/write_commands/write_commands_common.cpp g++ -o build/opt/mongo/db/pipeline/process_interface/replica_set_node_process_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/process_interface/replica_set_node_process_interface.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/snapshot_window_options_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_collection_command.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/snapshot_window_options_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/replica_set_node_process_interface.h:33, from src/mongo/db/pipeline/process_interface/replica_set_node_process_interface.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/db/pipeline/process_interface/replica_set_node_process_interface.h:33, from src/mongo/db/pipeline/process_interface/replica_set_node_process_interface.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/snapshot_window_options_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_collection_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/snapshot_window_options_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_collection_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/db/pipeline/process_interface/replica_set_node_process_interface.h:33, from src/mongo/db/pipeline/process_interface/replica_set_node_process_interface.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_collection_command.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/replica_set_node_process_interface.h:33, from src/mongo/db/pipeline/process_interface/replica_set_node_process_interface.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call Generating build/opt/mongo/db/kill_sessions_gen.cpp g++ -o build/opt/mongo/db/commands/list_indexes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/list_indexes.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/list_indexes.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/list_indexes.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/list_indexes.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/list_indexes.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/replica_set_node_process_interface.h:33, from src/mongo/db/pipeline/process_interface/replica_set_node_process_interface.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Creating 'build/opt/third_party/wiredtiger/wiredtiger.h' gcc -o build/opt/third_party/wiredtiger/src/txn/txn.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/txn/txn.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C Generating build/opt/mongo/db/ttl_gen.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/ustack.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustack.cpp g++ -o build/opt/mongo/db/ttl_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/ttl_gen.cpp g++ -o build/opt/mongo/db/ttl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ttl.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/basictz.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/basictz.cpp g++ -o build/opt/mongo/db/exec/near.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/near.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ttl_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ttl_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ttl_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ttl_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/ttl.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/ttl.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/ttl.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/ttl.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/near.h:38, from src/mongo/db/exec/near.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/near.h:38, from src/mongo/db/exec/near.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_cosh.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/e_cosh.cpp g++ -o build/opt/mongo/s/shard_id.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/shard_id.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/near.h:38, from src/mongo/db/exec/near.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/near.h:38, from src/mongo/db/exec/near.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/db/commands/txn_two_phase_commit_cmds_gen.cpp g++ -o build/opt/mongo/db/commands/txn_two_phase_commit_cmds_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands/txn_two_phase_commit_cmds_gen.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/thread/src/pthread/once.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_THREAD_BUILD_LIB -DBOOST_THREAD_PTHREAD -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/thread/src/pthread/once.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/db/mirror_maestro_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/txn_two_phase_commit_cmds_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/mirror_maestro_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/mirror_maestro_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/txn_two_phase_commit_cmds_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/txn_two_phase_commit_cmds_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/txn_two_phase_commit_cmds_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mirror_maestro_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/downgraded_unique_indexes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/downgraded_unique_indexes.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/uvector.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uvector.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/valueformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/valueformatter.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mirror_maestro_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libttl_d.a build/opt/mongo/db/ttl.o build/opt/mongo/db/ttl_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libttl_d.a src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/util/str.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/str.cpp g++ -o build/opt/mongo/executor/network_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/executor/network_interface.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mirror_maestro_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mirror_maestro_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/meta/meta_track.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/meta/meta_track.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/stats/timer_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/stats/timer_stats.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/auth/role_graph_builtin_roles.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/role_graph_builtin_roles.cpp gcc -o build/opt/third_party/wiredtiger/src/history/hs_rec.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/history/hs_rec.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/index/btree_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index/btree_access_method.cpp gcc -o build/opt/third_party/icu4c-57.1/source/i18n/decContext.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/decContext.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/icu4c-57.1/source/common/ucasemap.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucasemap.cpp g++ -o build/opt/mongo/db/exec/scoped_timer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/scoped_timer.cpp gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sinh.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sinh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_scalbl.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_scalbl.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/auth/authz_manager_external_state_d.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/authz_manager_external_state_d.cpp gcc -o build/opt/third_party/kms-message/src/kms_b64.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DKMS_MSG_STATIC -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO -Isrc/third_party/kms-message/src src/third_party/kms-message/src/kms_b64.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/repl/always_allow_non_local_writes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/always_allow_non_local_writes.cpp g++ -o build/opt/mongo/db/concurrency/deferred_writer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/concurrency/deferred_writer.cpp g++ -o build/opt/mongo/db/exec/text.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/text.cpp gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint32.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint32.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_data.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_data.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log1p.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log1p.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/auth/authz_manager_external_state_d.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_inv_hyper.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_inv_hyper.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:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lrintd.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lrintd.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:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_exp.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_exp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_globals.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_globals.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_bid.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_bid.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/auth/authz_manager_external_state_d.cpp:41: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_erf.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_erf.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tgamma.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tgamma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_logbd.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_logbd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log10.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log10.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod64.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod64.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod128.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod128.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_acosh.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_acosh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/auth/authz_manager_external_state_d.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cos.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cos.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:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fetestexcept.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fetestexcept.c In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/auth/authz_manager_external_state_d.cpp:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_mul.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_mul.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/exec/text.h:34, from src/mongo/db/exec/text.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_modf.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_modf.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log2.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log2.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_binarydecimal.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_binarydecimal.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/concurrency/deferred_writer.h:32, from src/mongo/db/concurrency/deferred_writer.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/concurrency/deferred_writer.h:32, from src/mongo/db/concurrency/deferred_writer.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/fetch.h:34, from src/mongo/db/exec/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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/fetch.h:34, from src/mongo/db/exec/text.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/fetch.h:34, from src/mongo/db/exec/text.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/concurrency/deferred_writer.h:32, from src/mongo/db/concurrency/deferred_writer.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/concurrency/deferred_writer.h:32, from src/mongo/db/concurrency/deferred_writer.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sin.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sin.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_asin.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_asin.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_compare.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_compare.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int64.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int64.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int32.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int32.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod32.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod32.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_string.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_string.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_div.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_div.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_nexttowardd.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_nexttowardd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sqrt.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sqrt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint8.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint8.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sqrt.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sqrt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod64.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod64.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_llrintd.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_llrintd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/concurrency/deferred_writer.cpp: In member function 'mongo::StatusWith > mongo::DeferredWriter::_getCollection(mongo::OperationContext*)': src/mongo/db/concurrency/deferred_writer.cpp:100:21: warning: redundant move in return statement [-Wredundant-move] 100 | return std::move(agc); | ~~~~~~~~~^~~~~ src/mongo/db/concurrency/deferred_writer.cpp:100:21: note: remove 'std::move' call gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantexpd.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantexpd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sin.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sin.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log1p.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log1p.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_2_str_tables.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_2_str_tables.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cbrt.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cbrt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_rem.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_rem.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp10.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp10.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint8.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint8.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_rem.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_rem.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_string.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_string.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_trig.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_trig.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_scalbl.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_scalbl.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantize.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantize.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cos.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cos.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_ldexp.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_ldexp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_mul.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_mul.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_add.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_add.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_exception.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_exception.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_nexttowardd.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_nexttowardd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_acos.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_acos.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_rem.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_rem.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fma.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cbrt.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cbrt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_lgamma.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_lgamma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint16.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint16.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_modf.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_modf.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_expm1.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_expm1.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_next.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_next.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp10.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp10.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log10.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log10.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_frexp.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_frexp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log10.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log10.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_logb.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_logb.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atanh.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atanh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_compare.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_compare.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_powi.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_powi.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sinh.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sinh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_scalb.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_scalb.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_hypot.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_hypot.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint16.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint16.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_acosh.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_acosh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_pow.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_pow.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_noncomp.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_noncomp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_hypot.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_hypot.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lgamma.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lgamma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fmod.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fmod.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log2.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log2.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint32.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint32.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_noncomp.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_noncomp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cosh.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cosh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_asinh.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_asinh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_quantize.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_quantize.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/concurrency/deferred_writer.h:32, from src/mongo/db/concurrency/deferred_writer.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_bid128.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_bid128.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_quantexpd.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_quantexpd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_cbrt.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_cbrt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint64.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint64.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_nearbyintd.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_nearbyintd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod128.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod128.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_acos.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_acos.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log2.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log2.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tan.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tan.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cbrt.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cbrt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_acos.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_acos.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sin.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sin.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atan2.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atan2.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_asinh.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_asinh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_div.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_div.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int16.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int16.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_round.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_round.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_minmax.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_minmax.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_nearbyintd.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_nearbyintd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_log.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_log.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_quantexpd.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_quantexpd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_string.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_string.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops_64.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops_64.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint32.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint32.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lgamma.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lgamma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_int.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_int.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_minmax.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_minmax.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_round_integral.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_round_integral.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fdimd.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fdimd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_pow.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_pow.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cos.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cos.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erfc.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erfc.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_compare.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_compare.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atan2.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atan2.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int8.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int8.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint64.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint64.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_expm1.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_expm1.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sqrt.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sqrt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lround.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lround.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tanh.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tanh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_add.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_add.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atanh.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atanh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_convert_data.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_convert_data.c gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_div.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_div.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_nexttowardd.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_nexttowardd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lgamma.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lgamma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sub.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sub.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int64.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int64.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_add.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_add.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_asin.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_asin.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_acosh.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_acosh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atanh.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atanh.c gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sinh.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sinh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_asin.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_asin.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fdimd.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fdimd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_scalb.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_scalb.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_from_int.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_from_int.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod32.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod32.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tgamma.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tgamma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_logb.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_logb.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_nearbyintd.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_nearbyintd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_pow.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_pow.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feraiseexcept.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feraiseexcept.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_noncomp.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_noncomp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log.c gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_four_over_pi.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_four_over_pi.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fegetexceptflag.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fegetexceptflag.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_logbd.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_logbd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_erfc.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_erfc.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fmod.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fmod.c gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_llrintd.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_llrintd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int32.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int32.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_pow.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_pow.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_round_integral.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_round_integral.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fesetexceptflag.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fesetexceptflag.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lround.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lround.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_frexp.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_frexp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_erfc.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_erfc.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_round_integral.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_round_integral.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_llrintd.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_llrintd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lrintd.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lrintd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_scalb.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_scalb.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_mul.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_mul.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint16.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint16.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_bid128.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_bid128.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int32.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int32.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_sqrt.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_sqrt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_modf.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_modf.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_scalbl.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_scalbl.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int8.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int8.c gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_bessel.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_bessel.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tanh.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tanh.c gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lrintd.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lrintd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_minmax.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_minmax.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_erf.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_erf.c gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erf.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erf.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_erf.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_erf.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feclearexcept.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feclearexcept.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/sqrt_tab_t.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/sqrt_tab_t.c gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp10.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp10.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp2.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp2.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp2.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp2.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fma.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_flag_operations.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_flag_operations.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_quantize.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_quantize.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_bid64.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_bid64.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_expm1.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_expm1.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int16.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int16.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int64.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int64.c gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atan.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atan.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cosh.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cosh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atan.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atan.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_mod.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_mod.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int16.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int16.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tan.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tan.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_next.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_next.c gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log1p.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log1p.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_dpd.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_dpd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atan2.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atan2.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint8.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint8.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_hypot.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_hypot.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint64.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint64.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_logb.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_logb.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_frexp.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_frexp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tanh.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tanh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_inv_trig.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_inv_trig.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cosh.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cosh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fmod.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fmod.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp2.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp2.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_asinh.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_asinh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fma.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atan.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atan.c gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tan.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tan.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_logbd.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_logbd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tgamma.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tgamma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fdimd.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fdimd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_ldexp.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_ldexp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lround.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lround.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_ldexp.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_ldexp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_next.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_next.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/repl/oplog_interface_local.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/oplog_interface_local.cpp Using tempfile /usr/src/tmp/tmpvp0898_n.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 @/usr/src/tmp/tmpvp0898_n.lnk gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnvdisp.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnvdisp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/query/collation/collator_factory_icu_decoration.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/collation/collator_factory_icu_decoration.cpp Skipping ranlib for thin archive build/opt/third_party/IntelRDFPMathLib20U1/libintel_decimal128.a g++ -o build/opt/mongo/client/connection_pool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/connection_pool.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/ustr_wcs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustr_wcs.cpp Generating build/opt/mongo/db/logical_session_cache_stats_gen.cpp Generating build/opt/mongo/db/logical_session_cache_gen.cpp g++ -o build/opt/mongo/db/initialize_operation_session_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/initialize_operation_session_info.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/repl/oplog_interface_local.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/query/collation/libcollator_factory_icu.a build/opt/mongo/db/query/collation/collator_factory_icu_decoration.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:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/query/collation/libcollator_factory_icu.a src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/fts/fts_language.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/fts/fts_language.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:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/repl/oplog_interface_local.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/repl/oplog_interface_local.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/repl/oplog_interface_local.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/util/debugger.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/debugger.cpp g++ -o build/opt/mongo/transport/service_entry_point_utils.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/transport/service_entry_point_utils.cpp 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 g++ -o build/opt/mongo/util/alarm_runner_background_thread.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/alarm_runner_background_thread.cpp g++ -o build/opt/mongo/util/alarm.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/alarm.cpp gcc -o build/opt/third_party/wiredtiger/src/txn/txn_ext.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/txn/txn_ext.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/auth/auth_op_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/auth_op_observer.cpp g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_rint.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/s_rint.cpp g++ -o build/opt/mongo/db/stats/fill_locker_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/stats/fill_locker_info.cpp ar rcsTD build/opt/mongo/util/libalarm.a build/opt/mongo/util/alarm.o build/opt/mongo/util/alarm_runner_background_thread.o Skipping ranlib for thin archive build/opt/mongo/util/libalarm.a g++ -o build/opt/mongo/db/commands/isself.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/isself.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/auth/auth_op_observer.h:32, from src/mongo/db/auth/auth_op_observer.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/auth/auth_op_observer.h:32, from src/mongo/db/auth/auth_op_observer.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/isself.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/auth/auth_op_observer.h:32, from src/mongo/db/auth/auth_op_observer.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call 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 src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/locdispnames.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/locdispnames.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/auth/auth_op_observer.h:32, from src/mongo/db/auth/auth_op_observer.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/logical_session_cache_factory_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/logical_session_cache_factory_mongod.cpp 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 g++ -o build/opt/mongo/logger/message_event_utf8_encoder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logger/message_event_utf8_encoder.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/isself.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/isself.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/isself.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/loclikely.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/loclikely.cpp g++ -o build/opt/mongo/db/query/planner_wildcard_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/planner_wildcard_helpers.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/index_bounds_builder.h:34, from src/mongo/db/query/planner_wildcard_helpers.h:36, from src/mongo/db/query/planner_wildcard_helpers.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/index_bounds_builder.h:34, from src/mongo/db/query/planner_wildcard_helpers.h:36, from src/mongo/db/query/planner_wildcard_helpers.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:34, from src/mongo/db/query/planner_wildcard_helpers.h:36, from src/mongo/db/query/planner_wildcard_helpers.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call Generating build/opt/mongo/scripting/mozjs/engine_gen.cpp g++ -o build/opt/mongo/scripting/mozjs/engine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/engine.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/index_bounds_builder.h:34, from src/mongo/db/query/planner_wildcard_helpers.h:36, from src/mongo/db/query/planner_wildcard_helpers.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/topology_version_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/topology_version_observer.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/normalizer2.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/normalizer2.cpp g++ -o build/opt/mongo/util/exit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/exit.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/index_bounds_builder.h:34, from src/mongo/db/query/planner_wildcard_helpers.h:36, from src/mongo/db/query/planner_wildcard_helpers.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/db/session_txn_record_gen.cpp Generating build/opt/mongo/db/repl/repl_server_parameters_gen.cpp g++ -o build/opt/mongo/db/repl/initial_syncer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/initial_syncer.cpp g++ -o build/opt/mongo/util/allocator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/allocator.cpp g++ -o build/opt/third_party/shim_boost.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 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 g++ -o build/opt/mongo/scripting/mozjs/internedstring.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/internedstring.cpp ar rcsTD build/opt/mongo/db/repl/libtopology_version_observer.a build/opt/mongo/db/repl/topology_version_observer.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libtopology_version_observer.a g++ -o build/opt/third_party/s2/strings/split.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/strings/split.cc g++ -o build/opt/third_party/s2/strings/strutil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/strings/strutil.cc g++ -o build/opt/third_party/s2/strings/stringprintf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/strings/stringprintf.cc In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/initial_syncer.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/initial_syncer.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/catalog/database_holder_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/database_holder_impl.cpp 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 Generating build/opt/mongo/s/request_types/move_primary_gen.cpp Generating build/opt/mongo/db/s/migration_coordinator_document_gen.cpp g++ -o build/opt/mongo/db/s/op_observer_sharding_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/op_observer_sharding_impl.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/initial_syncer.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/initial_syncer.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/boost-1.70.0/libs/filesystem/src/operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/filesystem/src/operations.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/catalog/database_holder_impl.h:32, from src/mongo/db/catalog/database_holder_impl.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_impl.h:32, from src/mongo/db/s/op_observer_sharding_impl.h:32, from src/mongo/db/s/op_observer_sharding_impl.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_impl.h:32, from src/mongo/db/s/op_observer_sharding_impl.h:32, from src/mongo/db/s/op_observer_sharding_impl.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/catalog/database_holder_impl.h:32, from src/mongo/db/catalog/database_holder_impl.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call Generating build/opt/mongo/client/sasl_aws_client_protocol_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/catalog/database_holder_impl.h:32, from src/mongo/db/catalog/database_holder_impl.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/catalog/database_holder_impl.h:32, from src/mongo/db/catalog/database_holder_impl.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_impl.h:32, from src/mongo/db/s/op_observer_sharding_impl.h:32, from src/mongo/db/s/op_observer_sharding_impl.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_impl.h:32, from src/mongo/db/s/op_observer_sharding_impl.h:32, from src/mongo/db/s/op_observer_sharding_impl.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/client/sasl_aws_client_protocol_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/kms-message/src -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/client/sasl_aws_client_protocol_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/client/sasl_aws_client_protocol_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/sasl_aws_client_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/sasl_aws_client_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/sasl_aws_client_protocol_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/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 g++ -o build/opt/mongo/db/pipeline/expression_js_emit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/expression_js_emit.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uregion.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/uregion.cpp g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp g++ -o build/opt/mongo/db/repl/isself.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/isself.cpp g++ -o build/opt/mongo/rpc/legacy_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/legacy_request.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/expression.h:47, from src/mongo/db/pipeline/expression_js_emit.h:32, from src/mongo/db/pipeline/expression_js_emit.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/catalog_cache_loader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/catalog_cache_loader.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/repl/isself.cpp:45: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/repl/isself.cpp:45: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/repl/isself.cpp:45: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/repl/isself.cpp:45: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/uscript_props.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uscript_props.cpp Generating build/opt/mongo/db/transaction_participant_gen.cpp Generating build/opt/mongo/db/commands/txn_cmds_gen.cpp Generating build/opt/mongo/db/transactions_stats_gen.cpp g++ -o build/opt/mongo/db/periodic_runner_job_abort_expired_transactions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp g++ -o build/opt/mongo/db/catalog/rename_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/rename_collection.cpp In file included from src/third_party/mozjs-60/extract/js/src/wasm/WasmJS.cpp:46, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:29: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/SymbolType.h:24, from src/third_party/mozjs-60/extract/js/src/gc/AtomMarking.h:13, from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpShared.h:25, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpShared.h:25, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x64/MacroAssembler-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::wasm::LinkDataTierCacheablePod]': src/third_party/mozjs-60/extract/js/src/wasm/WasmModule.h:50:50: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::wasm::LinkDataTierCacheablePod'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/wasm/WasmCompile.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:23, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/extract/js/src/wasm/WasmModule.h:43:8: note: 'struct js::wasm::LinkDataTierCacheablePod' declared here 43 | struct LinkDataTierCacheablePod | ^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x64/MacroAssembler-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h: In instantiation of 'T* js::jit::JitAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = JS::Value; Value = unsigned int; HashPolicy = js::jit::LIRGraph::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/jit/LIR.h:1893:37: required from here src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:101:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 101 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/rename_collection.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/rename_collection.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/rename_collection.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/rename_collection.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libisself.a build/opt/mongo/db/repl/isself.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libisself.a g++ -o build/opt/mongo/db/repl/repl_set_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_commands.cpp g++ -o build/opt/mongo/db/storage/devnull/devnull_kv_engine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/devnull/devnull_kv_engine.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:34, from src/mongo/db/repl/repl_set_commands.cpp:40: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:34, from src/mongo/db/repl/repl_set_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:34, from src/mongo/db/repl/repl_set_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:34, from src/mongo/db/repl/repl_set_commands.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call 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 g++ -o build/opt/mongo/logger/rotatable_file_writer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logger/rotatable_file_writer.cpp g++ -o build/opt/mongo/s/request_types/migration_secondary_throttle_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/request_types/migration_secondary_throttle_options.cpp g++ -o build/opt/mongo/transport/message_compressor_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/zstandard-1.4.3/zstd/lib -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/transport/message_compressor_metrics.cpp g++ -o build/opt/mongo/db/auth/authorization_session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/authorization_session.cpp Generating build/opt/mongo/db/commands/kill_operations_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/killoperations_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/killoperations_cmd.cpp Generating build/opt/mongo/db/storage/two_phase_index_build_knobs_gen.cpp Generating build/opt/mongo/db/catalog/index_build_entry_gen.cpp g++ -o build/opt/mongo/db/index_builds_coordinator_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index_builds_coordinator_mongod.cpp In file included from src/mongo/db/auth/authorization_session.cpp:51: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killoperations_common.h:43, from src/mongo/db/commands/killoperations_cmd.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/query/router_stage_skip.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/query/router_stage_skip.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killoperations_common.h:43, from src/mongo/db/commands/killoperations_cmd.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killoperations_common.h:43, from src/mongo/db/commands/killoperations_cmd.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killoperations_common.h:43, from src/mongo/db/commands/killoperations_cmd.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/config/config.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/config/config.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/client/connection_string_connect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/connection_string_connect.cpp Generating build/opt/mongo/s/catalog/type_shard_collection_gen.cpp g++ -o build/opt/mongo/db/s/shard_server_catalog_cache_loader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/shard_server_catalog_cache_loader.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/index_builds_coordinator_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/index_builds_coordinator_mongod.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/index_builds_coordinator_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/index_builds_coordinator_mongod.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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:73:33: warning: redundant move in return statement [-Wredundant-move] 73 | return std::move(c); | ~~~~~~~~~^~~ src/mongo/client/connection_string_connect.cpp:73:33: note: remove 'std::move' call src/mongo/client/connection_string_connect.cpp:86:29: warning: redundant move in return statement [-Wredundant-move] 86 | return std::move(set); | ~~~~~~~~~^~~~~ src/mongo/client/connection_string_connect.cpp:86:29: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/s/shard_server_catalog_cache_loader.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/s/shard_server_catalog_cache_loader.cpp:43: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/operation_sharding_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/operation_sharding_state.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/s/shard_server_catalog_cache_loader.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/s/shard_server_catalog_cache_loader.cpp:43: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call Generating build/opt/mongo/db/query/count_command_gen.cpp g++ -o build/opt/mongo/db/query/find.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/find.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/fts/unicode/string.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/fts/unicode/string.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/find.h:34, from src/mongo/db/query/find.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/find.h:34, from src/mongo/db/query/find.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/util/stacktrace_somap.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/stacktrace_somap.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/find.h:34, from src/mongo/db/query/find.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/find.h:34, from src/mongo/db/query/find.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/shim_zstd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/shim_zstd.cpp ar rcsTD build/opt/third_party/libshim_zstd.a build/opt/third_party/shim_zstd.o Skipping ranlib for thin archive build/opt/third_party/libshim_zstd.a g++ -o build/opt/mongo/db/repl/multiapplier.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/multiapplier.cpp g++ -o build/opt/mongo/db/matcher/path.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/path.cpp g++ -o build/opt/mongo/db/repair_database_and_check_version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repair_database_and_check_version.cpp g++ -o build/opt/mongo/db/commands/distinct.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/distinct.cpp g++ -o build/opt/mongo/db/commands/cpuload.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/cpuload.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repair_database_and_check_version.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/cpuload.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repair_database_and_check_version.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/cpuload.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/cpuload.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/cpuload.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/distinct.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/distinct.cpp:41: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/distinct.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/distinct.cpp:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csr2022.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/csr2022.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/esctrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/esctrn.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csrmbcs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/csrmbcs.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationbuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationbuilder.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/numsys.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/numsys.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csrsbcs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/csrsbcs.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/measunit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/measunit.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ucol.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/ucol.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/i18n/curramt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/curramt.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/gregocal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/gregocal.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uspoof_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/uspoof_impl.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationrootelements.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationrootelements.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uni2name.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/uni2name.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/sortkey.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/sortkey.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/timezone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/timezone.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ucsdet.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/ucsdet.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/nultrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/nultrans.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dtitvfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/dtitvfmt.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/i18n/digitinterval.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/digitinterval.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/reldtfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/reldtfmt.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/reldatefmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/reldatefmt.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/repattrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/repattrn.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csrecog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/csrecog.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/datefmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/datefmt.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/fpositer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/fpositer.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/titletrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/titletrn.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csrutf8.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/csrutf8.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/currunit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/currunit.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/calendar.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/calendar.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dcfmtsym.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/dcfmtsym.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/decfmtst.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/decfmtst.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/fmtable_cnv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/fmtable_cnv.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/pluralaffix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/pluralaffix.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/inputext.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/inputext.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/coll.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/coll.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/quant.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/quant.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationiterator.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/cecal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/cecal.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tznames_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/tznames_impl.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tzgnames.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/tzgnames.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/gregoimp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/gregoimp.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tmutfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/tmutfmt.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationdata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationdata.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/windtfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/windtfmt.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/regexcmp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/regexcmp.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationdatareader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationdatareader.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/identifier_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/identifier_info.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/vtzone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/vtzone.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/utrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/utrans.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/nfrule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/nfrule.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/scriptset.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/scriptset.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/brktrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/brktrans.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/measure.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/measure.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/measfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/measfmt.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dangical.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/dangical.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationsets.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationsets.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/i18n/numfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/numfmt.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/digitformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/digitformatter.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/nortrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/nortrans.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/transreg.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/transreg.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationweights.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationweights.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uregex.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/uregex.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/name2uni.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/name2uni.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/persncal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/persncal.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rbt_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/rbt_data.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationroot.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationroot.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/upluralrules.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/upluralrules.cpp ar rcsTD build/opt/mongo/db/librepair_database_and_check_version.a build/opt/mongo/db/repair_database_and_check_version.o g++ -o build/opt/third_party/icu4c-57.1/source/i18n/astro.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/astro.cpp Skipping ranlib for thin archive build/opt/mongo/db/librepair_database_and_check_version.a g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ucal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/ucal.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/fphdlimp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/fphdlimp.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tznames.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/tznames.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/sharedbreakiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/sharedbreakiterator.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationdatabuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationdatabuilder.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tzfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/tzfmt.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tzrule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/tzrule.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/hebrwcal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/hebrwcal.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/utf16collationiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/utf16collationiterator.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rbt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/rbt.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/digitgrouping.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/digitgrouping.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/nfsubs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/nfsubs.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/alphaindex.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/alphaindex.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/simpletz.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/simpletz.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tmutamt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/tmutamt.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/digitaffix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/digitaffix.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/format.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/format.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationfastlatinbuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationfastlatinbuilder.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dayperiodrules.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/dayperiodrules.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/regexst.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/regexst.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationruleparser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationruleparser.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/udatpg.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/udatpg.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/plurrule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/plurrule.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/choicfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/choicfmt.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/coptccal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/coptccal.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/wintzimpl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/wintzimpl.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/unumsys.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/unumsys.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/winnmfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/winnmfmt.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tridpars.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/tridpars.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csdetect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/csdetect.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/vzone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/vzone.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/strrepl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/strrepl.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collation.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csmatch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/csmatch.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/nfrs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/nfrs.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/remtrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/remtrans.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/coleitr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/coleitr.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rbt_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/rbt_set.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/standardplural.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/standardplural.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/zrule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/zrule.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/indiancal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/indiancal.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/precision.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/precision.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/smpdtfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/smpdtfmt.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tolowtrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/tolowtrn.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ztrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/ztrans.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/decimfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/decimfmt.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/affixpatternparser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/affixpatternparser.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ucol_sit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/ucol_sit.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tztrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/tztrans.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uspoof_build.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/uspoof_build.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ucoleitr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/ucoleitr.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/taiwncal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/taiwncal.cpp gcc -o build/opt/third_party/icu4c-57.1/source/i18n/ulocdata.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/ulocdata.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dtptngen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/dtptngen.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/unum.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/unum.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ufieldpositer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/ufieldpositer.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uspoof.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/uspoof.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/scientificnumberformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/scientificnumberformatter.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uspoof_conf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/uspoof_conf.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/smallintformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/smallintformatter.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationfastlatin.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationfastlatin.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/islamcal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/islamcal.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/smpdtfst.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/smpdtfst.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/regextxt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/regextxt.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ucol_res.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/ucol_res.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/olsontz.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/olsontz.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rbtz.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/rbtz.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationfcd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationfcd.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/funcrepl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/funcrepl.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dtrule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/dtrule.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/region.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/region.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rbt_rule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/rbt_rule.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/cpdtrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/cpdtrans.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tmunit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/tmunit.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uitercollationiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/uitercollationiterator.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/toupptrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/toupptrn.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rematch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/rematch.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/umsg.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/umsg.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/stsearch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/stsearch.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/zonemeta.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/zonemeta.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationkeys.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationkeys.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/translit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/translit.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationcompare.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationcompare.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/compactdecimalformat.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/compactdecimalformat.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/udateintervalformat.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/udateintervalformat.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uspoof_wsconf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/uspoof_wsconf.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/digitaffixesandpadding.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/digitaffixesandpadding.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/selfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/selfmt.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/utf8collationiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/utf8collationiterator.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/usearch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/usearch.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ethpccal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/ethpccal.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/plurfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/plurfmt.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/chnsecal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/chnsecal.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csrucode.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/csrucode.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/decimfmtimpl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/decimfmtimpl.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/fmtable.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/fmtable.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rulebasedcollator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/rulebasedcollator.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/gender.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/gender.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/currpinf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/currpinf.cpp gcc -o build/opt/third_party/icu4c-57.1/source/i18n/decNumber.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/decNumber.c g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dtfmtsym.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/dtfmtsym.cpp cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/icu4c-57.1/source/i18n/japancal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/japancal.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/msgfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/msgfmt.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/bocsu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/bocsu.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationtailoring.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationtailoring.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/visibledigits.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/visibledigits.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/udat.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/udat.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/decimalformatpattern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/decimalformatpattern.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dtitvinf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/dtitvinf.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uregexc.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/uregexc.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/buddhcal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/buddhcal.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationdatawriter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationdatawriter.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rbt_pars.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/rbt_pars.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/casetrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/casetrn.cpp gcc -o build/opt/third_party/icu4c-57.1/source/i18n/utmscale.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/utmscale.c g++ -o build/opt/third_party/icu4c-57.1/source/i18n/anytrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/anytrans.cpp cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/icu4c-57.1/source/i18n/currfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/currfmt.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/quantityformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/quantityformatter.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/digitlst.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/digitlst.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/unesctrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/unesctrn.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/regeximp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/regeximp.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/strmatch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/strmatch.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationsettings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationsettings.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ucln_in.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/ucln_in.cpp g++ -o build/opt/third_party/icu4c-57.1/source/i18n/search.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/search.cpp g++ -o build/opt/mongo/db/kill_sessions_local.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/kill_sessions_local.cpp g++ -o build/opt/mongo/db/matcher/extensions_callback_real.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/extensions_callback_real.cpp g++ -o build/opt/mongo/db/pipeline/field_path.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/field_path.cpp Using tempfile /usr/src/tmp/tmptkspsc2i.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 @/usr/src/tmp/tmptkspsc2i.lnk Skipping ranlib for thin archive build/opt/third_party/icu4c-57.1/source/libicu_i18n.a Generating build/opt/mongo/db/read_write_concern_defaults_gen.cpp Generating build/opt/mongo/db/commands_in_multi_doc_txn_params_gen.cpp g++ -o build/opt/mongo/db/commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands.cpp 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 Generating build/opt/mongo/transport/service_executor_gen.cpp g++ -o build/opt/mongo/transport/service_executor_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/transport/service_executor_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_real.h:32, from src/mongo/db/matcher/extensions_callback_real.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:35, from src/mongo/db/kill_sessions_local.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_real.h:32, from src/mongo/db/matcher/extensions_callback_real.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:35, from src/mongo/db/kill_sessions_local.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:35, from src/mongo/db/kill_sessions_local.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:35, from src/mongo/db/kill_sessions_local.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_expr.h:36, from src/mongo/db/matcher/extensions_callback_real.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/transport/service_executor_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/transport/service_executor_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/transport/service_executor_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/transport/service_executor_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/transport/service_executor_adaptive.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/transport/service_executor_adaptive.cpp g++ -o build/opt/mongo/transport/service_executor_synchronous.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/transport/service_executor_synchronous.cpp g++ -o build/opt/mongo/transport/service_executor_reserved.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/transport/service_executor_reserved.cpp g++ -o build/opt/mongo/db/update/current_date_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/current_date_node.cpp Generating build/opt/mongo/db/s/transaction_coordinator_document_gen.cpp g++ -o build/opt/mongo/db/s/transaction_coordinator_curop_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/transaction_coordinator_curop_mongod.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/update/update_leaf_node.h:32, from src/mongo/db/update/modifier_node.h:39, from src/mongo/db/update/current_date_node.h:35, from src/mongo/db/update/current_date_node.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call Generating build/opt/mongo/db/s/transaction_coordinators_stats_gen.cpp g++ -o build/opt/mongo/db/s/transaction_coordinators_stats_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/s/transaction_coordinators_stats_gen.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/service_executor_gen.o Skipping ranlib for thin archive build/opt/mongo/transport/libservice_executor.a g++ -o build/opt/mongo/db/s/wait_for_majority_service.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/wait_for_majority_service.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/mongos_process_interface.h:33, from src/mongo/db/s/transaction_coordinator_curop.h:31, from src/mongo/db/s/transaction_coordinator_curop_mongod.cpp:29: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/db/pipeline/process_interface/mongos_process_interface.h:33, from src/mongo/db/s/transaction_coordinator_curop.h:31, from src/mongo/db/s/transaction_coordinator_curop_mongod.cpp:29: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/db/pipeline/process_interface/mongos_process_interface.h:33, from src/mongo/db/s/transaction_coordinator_curop.h:31, from src/mongo/db/s/transaction_coordinator_curop_mongod.cpp:29: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/mongos_process_interface.h:33, from src/mongo/db/s/transaction_coordinator_curop.h:31, from src/mongo/db/s/transaction_coordinator_curop_mongod.cpp:29: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/transaction_coordinators_stats_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/transaction_coordinator_factory_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/transaction_coordinator_factory_mongod.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/transaction_coordinators_stats_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/transaction_coordinators_stats_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/transaction_coordinators_stats_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/transaction_coordinator_service.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/transaction_coordinator_service.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from src/mongo/db/s/transaction_coordinator_factory_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from src/mongo/db/s/transaction_coordinator_factory_mongod.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from src/mongo/db/s/transaction_coordinator_factory_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from src/mongo/db/s/transaction_coordinator_factory_mongod.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/mongos_process_interface.h:33, from src/mongo/db/s/transaction_coordinator_curop.h:31, from src/mongo/db/s/transaction_coordinator_curop_mongod.cpp:29: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/flow_control.h:34, from src/mongo/db/s/transaction_coordinator_service.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/flow_control.h:34, from src/mongo/db/s/transaction_coordinator_service.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/flow_control.h:34, from src/mongo/db/s/transaction_coordinator_service.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/flow_control.h:34, from src/mongo/db/s/transaction_coordinator_service.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/transaction_coordinator_structures.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/transaction_coordinator_structures.cpp g++ -o build/opt/mongo/db/s/transaction_coordinator_document_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/s/transaction_coordinator_document_gen.cpp g++ -o build/opt/mongo/db/s/single_transaction_coordinator_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/single_transaction_coordinator_stats.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/transaction_coordinator_document_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/transaction_coordinator_document_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/transaction_coordinator_document_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/transaction_coordinator_document_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/transaction_coordinator_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/transaction_coordinator_util.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/transaction_coordinator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/transaction_coordinator.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.h:32, from src/mongo/db/s/transaction_coordinator.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/transaction_coordinator_util.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.h:32, from src/mongo/db/s/transaction_coordinator.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.h:32, from src/mongo/db/s/transaction_coordinator.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.h:32, from src/mongo/db/s/transaction_coordinator.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/transaction_coordinator_util.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/transaction_coordinator_util.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/transaction_coordinator_util.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/transaction_coordinator_metrics_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/transaction_coordinator_metrics_observer.cpp g++ -o build/opt/mongo/db/s/transaction_coordinator_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/transaction_coordinator_catalog.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/transaction_coordinator_futures_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/transaction_coordinator_futures_util.cpp g++ -o build/opt/mongo/db/s/server_transaction_coordinators_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/server_transaction_coordinators_metrics.cpp g++ -o build/opt/mongo/db/s/transaction_coordinator_worker_curop_repository_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/transaction_coordinator_worker_curop_repository_mongod.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/transaction_coordinator_worker_curop_repository.h:31, from src/mongo/db/s/transaction_coordinator_worker_curop_info.h:31, from src/mongo/db/s/transaction_coordinator_worker_curop_repository_mongod.cpp:29: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/transaction_coordinator_worker_curop_repository.h:31, from src/mongo/db/s/transaction_coordinator_worker_curop_info.h:31, from src/mongo/db/s/transaction_coordinator_worker_curop_repository_mongod.cpp:29: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/transaction_coordinator_worker_curop_repository.h:31, from src/mongo/db/s/transaction_coordinator_worker_curop_info.h:31, from src/mongo/db/s/transaction_coordinator_worker_curop_repository_mongod.cpp:29: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/transaction_coordinator_worker_curop_repository.h:31, from src/mongo/db/s/transaction_coordinator_worker_curop_info.h:31, from src/mongo/db/s/transaction_coordinator_worker_curop_repository_mongod.cpp:29: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/rpc/message.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/message.cpp Generating build/opt/mongo/db/mongod_options_storage_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/local_oplog_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/local_oplog_info.cpp g++ -o build/opt/third_party/s2/util/coding/varint.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -Isrc/third_party/gflags-2.0/src -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/util/coding/varint.cc g++ -o build/opt/third_party/s2/util/coding/coder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -Isrc/third_party/gflags-2.0/src -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/util/coding/coder.cc 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 g++ -o build/opt/mongo/db/commands/drop_indexes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/drop_indexes.cpp g++ -o build/opt/mongo/platform/decimal128.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/platform/decimal128.cpp ar rcsTD build/opt/mongo/db/s/libtransaction_coordinator.a build/opt/mongo/db/s/server_transaction_coordinators_metrics.o build/opt/mongo/db/s/single_transaction_coordinator_stats.o build/opt/mongo/db/s/transaction_coordinator_catalog.o build/opt/mongo/db/s/transaction_coordinator_curop_mongod.o build/opt/mongo/db/s/transaction_coordinator_factory_mongod.o build/opt/mongo/db/s/transaction_coordinator_futures_util.o build/opt/mongo/db/s/transaction_coordinator_metrics_observer.o build/opt/mongo/db/s/transaction_coordinator_service.o build/opt/mongo/db/s/transaction_coordinator_structures.o build/opt/mongo/db/s/transaction_coordinator_util.o build/opt/mongo/db/s/transaction_coordinator_worker_curop_repository_mongod.o build/opt/mongo/db/s/transaction_coordinator.o build/opt/mongo/db/s/wait_for_majority_service.o build/opt/mongo/db/s/transaction_coordinator_document_gen.o build/opt/mongo/db/s/transaction_coordinators_stats_gen.o Skipping ranlib for thin archive build/opt/mongo/db/s/libtransaction_coordinator.a g++ -o build/opt/third_party/shim_mozjs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS src/third_party/shim_mozjs.cpp g++ -o build/opt/mongo/db/repl/oplog_batcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/oplog_batcher.cpp g++ -o build/opt/mongo/db/repl/oplog_applier.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/oplog_applier.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/local_oplog_info.h:36, from src/mongo/db/repl/local_oplog_info.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/local_oplog_info.h:36, from src/mongo/db/repl/local_oplog_info.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/local_oplog_info.h:36, from src/mongo/db/repl/local_oplog_info.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/local_oplog_info.h:36, from src/mongo/db/repl/local_oplog_info.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/drop_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/drop_indexes.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/drop_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_batcher.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/drop_indexes.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_batcher.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/oplog_applier.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/oplog_applier.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_batcher.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_batcher.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/oplog_applier.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/oplog_applier.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/repl/oplog_batcher.cpp: In member function 'mongo::StatusWith > mongo::repl::OplogBatcher::getNextApplierBatch(mongo::OperationContext*, const mongo::repl::OplogBatcher::BatchLimits&)': src/mongo/db/repl/oplog_batcher.cpp:198:33: warning: redundant move in return statement [-Wredundant-move] 198 | return std::move(ops); | ~~~~~~~~~^~~~~ src/mongo/db/repl/oplog_batcher.cpp:198:33: note: remove 'std::move' call src/mongo/db/repl/oplog_batcher.cpp:209:29: warning: redundant move in return statement [-Wredundant-move] 209 | return std::move(ops); | ~~~~~~~~~^~~~~ src/mongo/db/repl/oplog_batcher.cpp:209:29: note: remove 'std::move' call src/mongo/db/repl/oplog_batcher.cpp:217:33: warning: redundant move in return statement [-Wredundant-move] 217 | return std::move(ops); | ~~~~~~~~~^~~~~ src/mongo/db/repl/oplog_batcher.cpp:217:33: note: remove 'std::move' call src/mongo/db/repl/oplog_batcher.cpp:225:29: warning: redundant move in return statement [-Wredundant-move] 225 | return std::move(ops); | ~~~~~~~~~^~~~~ src/mongo/db/repl/oplog_batcher.cpp:225:29: note: remove 'std::move' call src/mongo/db/repl/oplog_batcher.cpp:234:21: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(ops); | ~~~~~~~~~^~~~~ src/mongo/db/repl/oplog_batcher.cpp:234:21: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_batcher.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/liblocal_oplog_info.a build/opt/mongo/db/repl/local_oplog_info.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liblocal_oplog_info.a g++ -o build/opt/mongo/scripting/bson_template_evaluator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/bson_template_evaluator.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/document_source_lookup.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_lookup.cpp 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 g++ -o build/opt/mongo/rpc/object_check.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/object_check.cpp ar rcsTD build/opt/mongo/db/repl/liboplog_application_interface.a build/opt/mongo/db/repl/oplog_applier.o build/opt/mongo/db/repl/oplog_batcher.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplog_application_interface.a g++ -o build/opt/mongo/db/keys_collection_document.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/keys_collection_document.cpp gcc -o build/opt/third_party/wiredtiger/src/schema/schema_worker.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/schema/schema_worker.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/storage/storage_repair_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/storage_repair_observer.cpp gcc -o build/opt/third_party/timelib-2021.06/dow.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/timelib-2021.06 src/third_party/timelib-2021.06/dow.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/system_index.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/system_index.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 g++ -o build/opt/mongo/db/s/wait_for_ongoing_chunk_splits_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/wait_for_ongoing_chunk_splits_command.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/wait_for_ongoing_chunk_splits_command.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/wait_for_ongoing_chunk_splits_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/system_index.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/system_index.cpp:40: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/wait_for_ongoing_chunk_splits_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/wait_for_ongoing_chunk_splits_command.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/system_index.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/system_index.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/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 g++ -o build/opt/mongo/scripting/jsexception.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/jsexception.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/accumulator_push.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_push.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/client/sdam/sdam_configuration_parameters_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/expression.h:47, from src/mongo/db/pipeline/accumulator.h:43, from src/mongo/db/pipeline/accumulator_push.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/client/sdam/sdam_configuration_parameters_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/client/sdam/sdam_configuration_parameters_gen.cpp g++ -o build/opt/mongo/db/update/rename_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/rename_node.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/client/sdam/sdam_configuration_parameters_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call 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 g++ -o build/opt/third_party/icu4c-57.1/source/common/ucln_cmn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucln_cmn.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/update/update_leaf_node.h:32, from src/mongo/db/update/rename_node.h:38, from src/mongo/db/update/rename_node.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/query/cluster_cursor_cleanup_job.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/query/cluster_cursor_cleanup_job.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/sdam/sdam_configuration_parameters_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call Generating build/opt/mongo/db/initialize_server_global_state_gen.cpp In file included from src/mongo/db/update/path_support.h:40, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/initialize_server_global_state_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/initialize_server_global_state_gen.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:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/sdam/sdam_configuration_parameters_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/sdam/sdam_configuration_parameters_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_cleanup_job.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/initialize_server_global_state_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_cleanup_job.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/initialize_server_global_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/initialize_server_global_state.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:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_cleanup_job.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_cleanup_job.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/initialize_server_global_state_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/initialize_server_global_state_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/initialize_server_global_state_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/client/sdam/libsdam_configuration_parameters.a build/opt/mongo/client/sdam/sdam_configuration_parameters_gen.o Skipping ranlib for thin archive build/opt/mongo/client/sdam/libsdam_configuration_parameters.a g++ -o build/opt/mongo/db/server_options_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/server_options_init.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_cleanup_job.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/config/configsvr_enable_sharding_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_enable_sharding_command.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 gcc -o build/opt/third_party/icu4c-57.1/source/common/udatamem.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/udatamem.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/asio-master/asio/src/asio.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 -Isrc/third_party/asio-master/asio/include src/third_party/asio-master/asio/src/asio.cpp gcc -o build/opt/third_party/wiredtiger/src/support/hash_fnv.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/hash_fnv.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/opt/mongo/db/libserverinit.a build/opt/mongo/db/initialize_server_global_state.o build/opt/mongo/db/initialize_server_global_state_gen.o build/opt/mongo/db/server_options_init.o Skipping ranlib for thin archive build/opt/mongo/db/libserverinit.a g++ -o build/opt/mongo/db/curop_failpoint_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/curop_failpoint_helpers.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_enable_sharding_command.cpp:41: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call Generating build/opt/mongo/db/catalog/multi_index_block_gen.cpp g++ -o build/opt/mongo/db/catalog/multi_index_block_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/catalog/multi_index_block_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_enable_sharding_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_enable_sharding_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_enable_sharding_command.cpp:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/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 Generating build/opt/mongo/s/request_types/flush_routing_table_cache_updates_gen.cpp g++ -o build/opt/mongo/db/s/flush_routing_table_cache_updates_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/flush_routing_table_cache_updates_command.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/multi_index_block_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/curop_failpoint_helpers.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/multi_index_block_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/curop_failpoint_helpers.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/curop_failpoint_helpers.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/multi_index_block_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/curop_failpoint_helpers.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/multi_index_block_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/flush_routing_table_cache_updates_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/flush_routing_table_cache_updates_command.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/flush_routing_table_cache_updates_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/flush_routing_table_cache_updates_command.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/fmt/dist/src/posix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-error=unused-result -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/fmt/dist/include -Ibuild/opt -Isrc src/third_party/fmt/dist/src/posix.cc src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/server_options_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/server_options_helpers.cpp Generating build/opt/mongo/db/server_options_helpers_gen.cpp g++ -o build/opt/mongo/db/server_options_helpers_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/server_options_helpers_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/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 g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/thread_specific.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/thread_specific.cpp g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp src/mongo/db/server_options_helpers.cpp: In function 'mongo::Status mongo::validateBaseOptions(const mongo::optionenvironment::Environment&)': src/mongo/db/server_options_helpers.cpp:159:25: warning: loop variable 'setParam' creates a copy from type 'const std::pair, std::__cxx11::basic_string >' [-Wrange-loop-construct] 159 | for (const auto setParam : parameters) { | ^~~~~~~~ src/mongo/db/server_options_helpers.cpp:159:25: note: use reference type to prevent copying 159 | for (const auto setParam : parameters) { | ^~~~~~~~ | & In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/server_options_helpers_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/server_options_helpers_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/matcher/expression_text.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/expression_text.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/server_options_helpers_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/server_options_helpers_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call Generating build/opt/mongo/rpc/metadata/impersonated_user_metadata_gen.cpp Generating build/opt/mongo/db/stats/read_concern_stats_gen.cpp g++ -o build/opt/mongo/db/service_entry_point_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/service_entry_point_common.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/expression_text.h:33, from src/mongo/db/matcher/expression_text.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/matcher/expression_text.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/matcher/expression_text.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/matcher/expression_text.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/service_entry_point_common.h:33, from src/mongo/db/service_entry_point_common.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/vm/UnboxedObject-inl.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:24, from src/third_party/mozjs-60/extract/js/src/jsapi.cpp:97, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/SymbolType.h:24, from src/third_party/mozjs-60/extract/js/src/gc/AtomMarking.h:13, from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpShared.h:25, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpShared.h:25, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x64/MacroAssembler-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:19, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::wasm::LinkDataTierCacheablePod]': src/third_party/mozjs-60/extract/js/src/wasm/WasmModule.h:50:50: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::wasm::LinkDataTierCacheablePod'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsapi.cpp:95, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:11: src/third_party/mozjs-60/extract/js/src/wasm/WasmModule.h:43:8: note: 'struct js::wasm::LinkDataTierCacheablePod' declared here 43 | struct LinkDataTierCacheablePod | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gc::TenureCountCache]': src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:159:42: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gc::TenureCountCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsfriendapi.cpp:15, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:47: src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:152:8: note: 'struct js::gc::TenureCountCache' declared here 152 | struct TenureCountCache | ^~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/service_entry_point_common.h:33, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/service_entry_point_common.h:33, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/service_entry_point_common.h:33, from src/mongo/db/service_entry_point_common.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_text.cpp: In member function 'virtual std::unique_ptr mongo::TextMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_text.cpp:111:21: warning: redundant move in return statement [-Wredundant-move] 111 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_text.cpp:111:21: note: remove 'std::move' call In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap >::MapHashPolicy; AllocPolicy = js::TempAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = js::frontend::UsedNameTracker::UsedNameInfo; HashPolicy = js::DefaultHasher; AllocPolicy = js::TempAllocPolicy]' src/third_party/mozjs-60/extract/js/src/frontend/ParseContext.h:167:19: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap >::MapHashPolicy, js::TempAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap >::MapHashPolicy, js::TempAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ ar rcsTD build/opt/mongo/db/libserver_options.a build/opt/mongo/db/server_options_helpers.o build/opt/mongo/db/server_options_helpers_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libserver_options.a In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:74:25: required from 'bool js::detail::InlineTable::switchToTable() [with InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:298:22: required from 'bool js::detail::InlineTable::add(js::detail::InlineTable::AddPtr&, KeyInput&&, Args&& ...) [with KeyInput = JSAtom*&; Args = {js::frontend::DeclaredNameInfo}; InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:535:25: required from 'bool js::InlineMap::add(js::InlineMap::AddPtr&, KeyInput&&, ValueInput&&) [with KeyInput = JSAtom*&; ValueInput = js::frontend::DeclaredNameInfo; Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; long unsigned int InlineEntries = 24; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; js::InlineMap::AddPtr = js::detail::InlineTable, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry, js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>, js::DefaultHasher, js::SystemAllocPolicy, 24>::AddPtr]' src/third_party/mozjs-60/extract/js/src/frontend/ParseContext.h:311:53: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/opt/mongo/base/status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/status.cpp g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/matcher/expression_text.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/split_vector_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/split_vector_command.cpp Generating build/opt/mongo/db/repl/election_reason_counter_gen.cpp g++ -o build/opt/mongo/db/repl/election_reason_counter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/election_reason_counter.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_util.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp:43: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_util.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp:43: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/os_common/os_fstream.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_common/os_fstream.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_vector_command.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call Creating 'build/opt/mongo/util/version_constants.h' g++ -o build/opt/mongo/util/version_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/version_impl.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_vector_command.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_vector_command.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_vector_command.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 g++ -o build/opt/third_party/shim_asio.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -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 gcc -o build/opt/third_party/timelib-2021.06/parse_date.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/timelib-2021.06 src/third_party/timelib-2021.06/parse_date.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/catalog/validate_adaptor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/validate_adaptor.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/exec/collection_scan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/collection_scan.cpp gcc -o build/opt/third_party/wiredtiger/src/lsm/lsm_cursor_bulk.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/lsm/lsm_cursor_bulk.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/catalog/validate_state.h:35, from src/mongo/db/catalog/validate_adaptor.h:32, from src/mongo/db/catalog/validate_adaptor.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/catalog/validate_state.h:35, from src/mongo/db/catalog/validate_adaptor.h:32, from src/mongo/db/catalog/validate_adaptor.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/collection_scan.h:35, from src/mongo/db/exec/collection_scan.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/logical_session_id_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/logical_session_id_gen.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:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/collection_scan.h:35, from src/mongo/db/exec/collection_scan.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/catalog/validate_state.h:35, from src/mongo/db/catalog/validate_adaptor.h:32, from src/mongo/db/catalog/validate_adaptor.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/catalog/validate_state.h:35, from src/mongo/db/catalog/validate_adaptor.h:32, from src/mongo/db/catalog/validate_adaptor.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/initialize_server_security_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/initialize_server_security_state.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/collection_scan.h:35, from src/mongo/db/exec/collection_scan.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/collection_scan.h:35, from src/mongo/db/exec/collection_scan.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_id_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/block/block_open.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/block/block_open.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/timelib-2021.06/tm2unixtime.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/timelib-2021.06 src/third_party/timelib-2021.06/tm2unixtime.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/icu4c-57.1/source/common/wintz.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/wintz.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/curop_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/curop_metrics.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/dictionarydata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/dictionarydata.cpp g++ -o build/opt/mongo/client/streamable_replica_set_monitor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/streamable_replica_set_monitor.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/curop_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/curop_metrics.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call Generating build/opt/mongo/db/catalog/validate_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/curop_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/curop_metrics.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/catalog/validate_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/catalog/validate_gen.cpp g++ -o build/opt/mongo/db/query/find_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/find_common.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/validate_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/validate_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/query/find_common.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/validate_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/validate_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/query/find_common.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/query/find_common.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/query/find_common.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/third_party/libshim_mozjs.a build/opt/third_party/shim_mozjs.o Skipping ranlib for thin archive build/opt/third_party/libshim_mozjs.a src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/client/sdam/topology_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/sdam/topology_manager.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/ucurr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucurr.cpp gcc -o build/opt/third_party/wiredtiger/src/support/rand.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/rand.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/util/duration.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/duration.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/transaction_participant.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/transaction_participant.cpp 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 -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.cpp g++ -o build/opt/mongo/rpc/metadata/impersonated_user_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/metadata/impersonated_user_metadata.cpp gcc -o build/opt/third_party/wiredtiger/src/txn/txn_recover.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/txn/txn_recover.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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:78:21: warning: redundant move in return statement [-Wredundant-move] 78 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.cpp:78:21: note: remove 'std::move' call g++ -o build/opt/mongo/db/traffic_recorder_validators.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/traffic_recorder_validators.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from src/mongo/db/transaction_participant.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from src/mongo/db/transaction_participant.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from src/mongo/db/transaction_participant.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from src/mongo/db/transaction_participant.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/request_types/move_primary_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/request_types/move_primary_gen.cpp gcc -o build/opt/third_party/wiredtiger/src/tiered/tiered_opener.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/tiered/tiered_opener.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C Generating build/opt/mongo/db/commands/test_commands_enabled_gen.cpp g++ -o build/opt/mongo/db/commands/test_commands_enabled.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/test_commands_enabled.cpp g++ -o build/opt/mongo/db/commands/test_commands_enabled_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands/test_commands_enabled_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/move_primary_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/uresbund.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uresbund.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/key_string.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/key_string.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:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/test_commands_enabled_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/test_commands_enabled_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/test_commands_enabled_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/test_commands_enabled_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call Generating build/opt/mongo/transport/message_compressor_options_server_gen.cpp g++ -o build/opt/mongo/transport/message_compressor_options_server_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/transport/message_compressor_options_server_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/transport/message_compressor_options_server_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/meta/meta_apply.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/meta/meta_apply.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/matcher/expression_expr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/expression_expr.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/transport/message_compressor_options_server_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/transport/message_compressor_options_server_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/transport/message_compressor_options_server_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/commands/libtest_commands_enabled.a build/opt/mongo/db/commands/test_commands_enabled.o build/opt/mongo/db/commands/test_commands_enabled_gen.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libtest_commands_enabled.a g++ -o build/opt/mongo/db/update/pullall_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/pullall_node.cpp In file included from src/mongo/db/matcher/expression_expr.h:36, from src/mongo/db/matcher/expression_expr.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/rewrite_expr.h:36, from src/mongo/db/matcher/expression_expr.h:37, from src/mongo/db/matcher/expression_expr.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/expression.h:47, from src/mongo/db/matcher/rewrite_expr.h:38, from src/mongo/db/matcher/expression_expr.h:37, from src/mongo/db/matcher/expression_expr.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call Generating build/opt/mongo/db/s/add_shard_cmd_gen.cpp Generating build/opt/mongo/db/s/range_deletion_task_gen.cpp g++ -o build/opt/mongo/db/s/shard_server_op_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/shard_server_op_observer.cpp 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:118:21: warning: redundant move in return statement [-Wredundant-move] 118 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/expression_expr.cpp:118:21: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/update/update_leaf_node.h:32, from src/mongo/db/update/modifier_node.h:39, from src/mongo/db/update/array_culling_node.h:35, from src/mongo/db/update/pullall_node.h:35, from src/mongo/db/update/pullall_node.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/s/shard_server_op_observer.h:32, from src/mongo/db/s/shard_server_op_observer.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/s/shard_server_op_observer.h:32, from src/mongo/db/s/shard_server_op_observer.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call Generating build/opt/mongo/db/pipeline/document_source_change_stream_gen.cpp g++ -o build/opt/third_party/s2/s2r2rect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2r2rect.cc g++ -o build/opt/mongo/db/pipeline/resume_token.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/resume_token.cpp g++ -o build/opt/mongo/db/storage/oplog_hack.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/oplog_hack.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/s/shard_server_op_observer.h:32, from src/mongo/db/s/shard_server_op_observer.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/s/shard_server_op_observer.h:32, from src/mongo/db/s/shard_server_op_observer.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/auth/auth_decorations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/auth_decorations.cpp 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 g++ -o build/opt/mongo/executor/egress_tag_closer_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/executor/egress_tag_closer_manager.cpp g++ -o build/opt/mongo/db/matcher/path_internal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/path_internal.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/authentication_session.h:34, from src/mongo/db/auth/auth_decorations.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/authentication_session.h:34, from src/mongo/db/auth/auth_decorations.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/matcher/libpath.a build/opt/mongo/db/matcher/path.o build/opt/mongo/db/matcher/path_internal.o src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/matcher/libpath.a src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/fts/fts_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/fts/fts_util.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/authentication_session.h:34, from src/mongo/db/auth/auth_decorations.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/authentication_session.h:34, from src/mongo/db/auth/auth_decorations.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/global_settings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/global_settings.cpp g++ -o build/opt/mongo/db/s/sharding_logging.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/sharding_logging.cpp 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 g++ -o build/opt/mongo/platform/stack_locator_linux.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/platform/stack_locator_linux.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/db/auth/authorization_manager_global_parameters_gen.cpp g++ -o build/opt/mongo/db/auth/authorization_manager_global_parameters_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/auth/authorization_manager_global_parameters_gen.cpp g++ -o build/opt/mongo/db/auth/authorization_manager_global.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/authorization_manager_global.cpp g++ -o build/opt/mongo/scripting/mozjs/idwrapper.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/idwrapper.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/authorization_manager_global_parameters_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/index/s2_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index/s2_access_method.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/authorization_manager_global_parameters_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call Generating build/opt/mongo/db/commands/user_management_commands_gen.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:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/authorization_manager_global_parameters_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call Generating build/opt/mongo/db/auth/address_restriction_gen.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:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/authorization_manager_global_parameters_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/user_management_commands_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands/user_management_commands_gen.cpp g++ -o build/opt/mongo/util/password_digest.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/password_digest.cpp g++ -o build/opt/mongo/s/client/shard_local.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/client/shard_local.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/user_management_commands_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/user_management_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/user_management_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/user_management_commands_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/s/client/shard_local.cpp:42: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/s/client/shard_local.cpp:42: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/log_process_details.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/log_process_details.cpp ar rcsTD build/opt/mongo/db/auth/libauthorization_manager_global.a build/opt/mongo/db/auth/authorization_manager_global.o build/opt/mongo/db/auth/authorization_manager_global_parameters_gen.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauthorization_manager_global.a g++ -o build/opt/mongo/db/commands/reap_logical_session_cache_now.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/reap_logical_session_cache_now.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/reap_logical_session_cache_now.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/third_party/s2/util/math/mathutil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -Isrc/third_party/gflags-2.0/src -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/util/math/mathutil.cc In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/reap_logical_session_cache_now.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/reap_logical_session_cache_now.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/reap_logical_session_cache_now.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/apply_ops.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/apply_ops.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 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 gcc -o build/opt/third_party/wiredtiger/src/conn/conn_ckpt.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/conn/conn_ckpt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 g++ -o build/opt/mongo/bson/util/bson_extract.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/util/bson_extract.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/kms-message/src/kms_message.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DKMS_MSG_STATIC -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO -Isrc/third_party/kms-message/src src/third_party/kms-message/src/kms_message.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/s/collection_sharding_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/collection_sharding_state.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/util/thread_safety_context.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/thread_safety_context.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/apply_ops.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/apply_ops.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/unwind/dist/src/mi/Lget_proc_name.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/mi/Lget_proc_name.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/session/session_api.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/session/session_api.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/s/catalog/type_chunk_base_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/catalog/type_chunk_base_gen.cpp g++ -o build/opt/mongo/db/exec/sort_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/sort_executor.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/catalog/type_chunk_base_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call gcc -o build/opt/third_party/icu4c-57.1/source/common/ucmndata.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucmndata.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/document_path_support.h:38, from src/mongo/db/query/sort_pattern.h:34, from src/mongo/db/exec/sort_key_comparator.h:35, from src/mongo/db/exec/sort_executor.h:34, from src/mongo/db/exec/sort_executor.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call Generating build/opt/mongo/db/keys_collection_manager_gen.cpp g++ -o build/opt/mongo/db/keys_collection_manager_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/keys_collection_manager_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/keys_collection_manager_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/keys_collection_manager_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/keys_collection_manager_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/keys_collection_manager_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/btree/bt_discard.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_discard.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/pipeline/accumulator_first.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_first.cpp g++ -o build/opt/mongo/transport/message_compressor_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/zstandard-1.4.3/zstd/lib -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/transport/message_compressor_registry.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/document_source_internal_shard_filter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_internal_shard_filter.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/expression.h:47, from src/mongo/db/pipeline/accumulator.h:43, from src/mongo/db/pipeline/accumulator_first.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/classification.hpp:17, from src/mongo/transport/message_compressor_registry.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::constraint::failed() [with Model = boost::algorithm::FinderConcept >, __gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:77:13: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/mongo/transport/message_compressor_registry.cpp:120:32: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:47:52: warning: 'this' pointer is null [-Wnonnull] 47 | static void failed() { ((Model*)0)->constraints(); } | ~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:26, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/mongo/transport/message_compressor_registry.cpp:35: src/third_party/boost-1.70.0/boost/algorithm/string/concept.hpp:40:18: note: in a call to non-static member function 'void boost::algorithm::FinderConcept::constraints() [with FinderT = boost::algorithm::detail::token_finderF >; IteratorT = __gnu_cxx::__normal_iterator >]' 40 | void constraints() | ^~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/classification.hpp:17, from src/mongo/transport/message_compressor_registry.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: required from 'struct boost::CopyConstructible<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:125:16: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: [ skipping 14 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/mongo/transport/message_compressor_registry.cpp:120:32: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/classification.hpp:17, from src/mongo/transport/message_compressor_registry.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::CopyConstructible<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/classification.hpp:17, from src/mongo/transport/message_compressor_registry.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:114:7: [ skipping 18 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/mongo/transport/message_compressor_registry.cpp:120:32: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/classification.hpp:17, from src/mongo/transport/message_compressor_registry.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/classification.hpp:17, from src/mongo/transport/message_compressor_registry.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:114:7: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 13 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/mongo/transport/message_compressor_registry.cpp:120:32: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/classification.hpp:17, from src/mongo/transport/message_compressor_registry.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::incrementable_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/classification.hpp:17, from src/mongo/transport/message_compressor_registry.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:136:13: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 13 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/mongo/transport/message_compressor_registry.cpp:120:32: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/classification.hpp:17, from src/mongo/transport/message_compressor_registry.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/classification.hpp:17, from src/mongo/transport/message_compressor_registry.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: required from 'struct boost::EqualityComparable<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 13 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/mongo/transport/message_compressor_registry.cpp:120:32: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/classification.hpp:17, from src/mongo/transport/message_compressor_registry.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::EqualityComparable<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/classification.hpp:17, from src/mongo/transport/message_compressor_registry.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/range/concepts.hpp:152:13: [ skipping 17 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/mongo/transport/message_compressor_registry.cpp:120:32: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/classification.hpp:17, from src/mongo/transport/message_compressor_registry.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/classification.hpp:17, from src/mongo/transport/message_compressor_registry.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:152:13: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ > >)>' src/third_party/boost-1.70.0/boost/range/concepts.hpp:278:9: [ skipping 12 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/mongo/transport/message_compressor_registry.cpp:120:32: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/classification.hpp:17, from src/mongo/transport/message_compressor_registry.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::single_pass_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/classification.hpp:17, from src/mongo/transport/message_compressor_registry.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ > >)>' src/third_party/boost-1.70.0/boost/range/concepts.hpp:278:9: [ skipping 12 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/mongo/transport/message_compressor_registry.cpp:120:32: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/classification.hpp:17, from src/mongo/transport/message_compressor_registry.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/classification.hpp:17, from src/mongo/transport/message_compressor_registry.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:278:9: required from 'struct boost::SinglePassRangeConcept > > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept > > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ > > >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: [ skipping 7 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/mongo/transport/message_compressor_registry.cpp:120:32: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/classification.hpp:17, from src/mongo/transport/message_compressor_registry.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::range_detail::SinglePassIteratorConcept::~SinglePassIteratorConcept() [with Iterator = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 158 | BOOST_CONCEPT_USAGE(SinglePassIteratorConcept) | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/classification.hpp:17, from src/mongo/transport/message_compressor_registry.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: required from 'struct boost::SinglePassRangeConcept > > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept > > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ > > >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: [ skipping 7 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/mongo/transport/message_compressor_registry.cpp:120:32: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/classification.hpp:17, from src/mongo/transport/message_compressor_registry.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::SinglePassRangeConcept > > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/classification.hpp:17, from src/mongo/transport/message_compressor_registry.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::SinglePassRangeConcept > > >]': src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range<__gnu_cxx::__normal_iterator > >; SinglePassRange2 = boost::iterator_range<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = __gnu_cxx::__normal_iterator >; Iterator2T = __gnu_cxx::__normal_iterator >]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = __gnu_cxx::__normal_iterator >]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; Facade2 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:900:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator==(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; V1 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; V2 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/third_party/boost-1.70.0/boost/iterator/iterator_adaptor.hpp:305:29: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/mongo/transport/message_compressor_registry.cpp:120:32: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/classification.hpp:17, from src/mongo/transport/message_compressor_registry.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::SinglePassRangeConcept::~SinglePassRangeConcept() [with T = const boost::iterator_range<__gnu_cxx::__normal_iterator > >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 284 | BOOST_CONCEPT_USAGE(SinglePassRangeConcept) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::CopyConstructible<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: required from 'struct boost::CopyConstructible<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:125:16: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: [ skipping 15 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/mongo/transport/message_compressor_registry.cpp:120:32: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::CopyConstructible::~CopyConstructible() [with TT = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 167 | BOOST_CONCEPT_USAGE(CopyConstructible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 19 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/mongo/transport/message_compressor_registry.cpp:120:32: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::incrementable_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/range/concepts.hpp:136:13: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: [ skipping 14 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/mongo/transport/message_compressor_registry.cpp:120:32: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::range_detail::IncrementableIteratorConcept::~IncrementableIteratorConcept() [with Iterator = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:136:13: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 136 | BOOST_CONCEPT_USAGE(IncrementableIteratorConcept) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::EqualityComparable<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: required from 'struct boost::EqualityComparable<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: [ skipping 14 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/mongo/transport/message_compressor_registry.cpp:120:32: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::EqualityComparable::~EqualityComparable() [with TT = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 233 | BOOST_CONCEPT_USAGE(EqualityComparable) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 18 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/mongo/transport/message_compressor_registry.cpp:120:32: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::single_pass_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 13 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/mongo/transport/message_compressor_registry.cpp:120:32: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::range_detail::SinglePassIteratorConcept::~SinglePassIteratorConcept() [with Iterator = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 158 | BOOST_CONCEPT_USAGE(SinglePassIteratorConcept) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::SinglePassRangeConcept > > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > > >]' src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: required from 'struct boost::SinglePassRangeConcept > > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept > > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 8 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/mongo/transport/message_compressor_registry.cpp:120:32: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::SinglePassRangeConcept::~SinglePassRangeConcept() [with T = const boost::iterator_range<__gnu_cxx::__normal_iterator > >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 284 | BOOST_CONCEPT_USAGE(SinglePassRangeConcept) | ^~~~~~~~~~~~~~~~~~~ g++ -o build/opt/third_party/abseil-cpp-master/abseil-cpp/absl/container/internal/raw_hash_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/abseil-cpp-master/abseil-cpp src/third_party/abseil-cpp-master/abseil-cpp/absl/container/internal/raw_hash_set.cc gcc -o build/opt/third_party/wiredtiger/src/btree/bt_split.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_split.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_internal_shard_filter.h:33, from src/mongo/db/pipeline/document_source_internal_shard_filter.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/repl_set_tag.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_tag.cpp ar rcsTD build/opt/third_party/abseil-cpp-master/libabsl_container.a build/opt/third_party/abseil-cpp-master/abseil-cpp/absl/container/internal/raw_hash_set.o Skipping ranlib for thin archive build/opt/third_party/abseil-cpp-master/libabsl_container.a gcc -o build/opt/third_party/icu4c-57.1/source/common/ulist.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ulist.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/scripting/mozjs/status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/status.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_internal_shard_filter.h:33, from src/mongo/db/pipeline/document_source_internal_shard_filter.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_internal_shard_filter.h:33, from src/mongo/db/pipeline/document_source_internal_shard_filter.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_internal_shard_filter.h:33, from src/mongo/db/pipeline/document_source_internal_shard_filter.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call Generating build/opt/mongo/db/free_mon/free_mon_storage_gen.cpp g++ -o build/opt/mongo/db/free_mon/free_mon_storage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_storage.cpp g++ -o build/opt/third_party/s2/s2.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2.cc g++ -o build/opt/mongo/db/ftdc/collector.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ftdc/collector.cpp In file included from src/third_party/mozjs-60/include/jspubtd.h:17, from src/third_party/mozjs-60/include/jsapi.h:26, from src/mongo/scripting/mozjs/wraptype.h:33, from src/mongo/scripting/mozjs/status.h:32, from src/mongo/scripting/mozjs/status.cpp:32: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 1]': src/third_party/mozjs-60/include/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 1]' src/mongo/scripting/mozjs/status.cpp:62:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/jsapi.h:29, from src/mongo/scripting/mozjs/wraptype.h:33, from src/mongo/scripting/mozjs/status.h:32, from src/mongo/scripting/mozjs/status.cpp:32: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/free_mon/free_mon_storage.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/free_mon/free_mon_storage.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call Generating build/opt/mongo/util/tcmalloc_parameters_gen.cpp g++ -o build/opt/mongo/util/tcmalloc_set_parameter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/tcmalloc_set_parameter.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/free_mon/free_mon_storage.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/free_mon/free_mon_storage.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call Generating build/opt/mongo/s/request_types/create_database_gen.cpp g++ -o build/opt/mongo/s/cluster_commands_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/cluster_commands_helpers.cpp g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_asinh.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/s_asinh.cpp g++ -o build/opt/mongo/db/read_write_concern_provenance_base_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/read_write_concern_provenance_base_gen.cpp g++ -o build/opt/mongo/db/query/get_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/get_executor.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/cluster_commands_helpers.h:39, from src/mongo/s/cluster_commands_helpers.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/read_write_concern_provenance_base_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/cluster_commands_helpers.h:39, from src/mongo/s/cluster_commands_helpers.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/ops/delete_request.h:37, from src/mongo/db/query/get_executor.h:33, from src/mongo/db/query/get_executor.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/read_write_concern_provenance_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/ops/delete_request.h:37, from src/mongo/db/query/get_executor.h:33, from src/mongo/db/query/get_executor.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/cluster_commands_helpers.h:39, from src/mongo/s/cluster_commands_helpers.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/cluster_commands_helpers.h:39, from src/mongo/s/cluster_commands_helpers.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/read_write_concern_provenance_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/read_write_concern_provenance_base_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/ops/delete_request.h:37, from src/mongo/db/query/get_executor.h:33, from src/mongo/db/query/get_executor.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/ops/delete_request.h:37, from src/mongo/db/query/get_executor.h:33, from src/mongo/db/query/get_executor.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/fts/fts_query_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/fts/fts_query_impl.cpp In file included from src/mongo/db/query/planner_ixselect.h:32, from src/mongo/db/query/get_executor.cpp:75: 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:85:25: warning: redundant move in return statement [-Wredundant-move] 85 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:85: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:140:25: warning: redundant move in return statement [-Wredundant-move] 140 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:140: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:177:25: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:177:25: 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:152:21: warning: redundant move in return statement [-Wredundant-move] 152 | return std::move(clonedQuery); | ~~~~~~~~~^~~~~~~~~~~~~ src/mongo/db/fts/fts_query_impl.cpp:152:21: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/util/cmdline_utils/censor_cmdline.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/cmdline_utils/censor_cmdline.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/servlk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/servlk.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/umutex.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/umutex.cpp g++ -o build/opt/mongo/db/s/database_sharding_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/database_sharding_state.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/ops/delete_request.h:37, from src/mongo/db/query/get_executor.h:33, from src/mongo/db/query/get_executor.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/s2/s1angle.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s1angle.cc gcc -o build/opt/third_party/wiredtiger/src/lsm/lsm_stat.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/lsm/lsm_stat.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/storage/snapshot_helper.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/snapshot_helper.cpp g++ -o build/opt/mongo/s/client/shard.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/client/shard.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/s/database_sharding_state.h:32, from src/mongo/db/s/database_sharding_state.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/s/database_sharding_state.h:32, from src/mongo/db/s/database_sharding_state.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/s/database_sharding_state.h:32, from src/mongo/db/s/database_sharding_state.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/s/database_sharding_state.h:32, from src/mongo/db/s/database_sharding_state.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/request_types/balance_chunk_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/request_types/balance_chunk_request_type.cpp ar rcsTD build/opt/mongo/db/storage/libsnapshot_helper.a build/opt/mongo/db/storage/snapshot_helper.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libsnapshot_helper.a g++ -o build/opt/mongo/db/pipeline/document_source_internal_inhibit_optimization.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/db/repl/replication_consistency_markers_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/replication_consistency_markers_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/repl/replication_consistency_markers_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:32, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:32, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/third_party/s2/s2latlngrect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2latlngrect.cc src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:32, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:32, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/dependencies.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/dependencies.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/replication_consistency_markers_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call 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 Generating build/opt/mongo/db/repl/database_cloner_gen.cpp g++ -o build/opt/mongo/db/repl/collection_cloner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/collection_cloner.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/logical_time_validator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/logical_time_validator.cpp In file included from src/third_party/mozjs-60/extract/js/src/vm/Iteration.cpp:37, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:21, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:21, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/wasm/WasmInstance.h:23, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:35, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NativeIterator]': src/third_party/mozjs-60/extract/js/src/vm/Iteration.cpp:578:12: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'struct js::NativeIterator' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/Iteration.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:32:8: note: 'struct js::NativeIterator' declared here 32 | struct NativeIterator | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/AllocPolicy.h:18, from src/third_party/mozjs-60/include/js/TracingAPI.h:10, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/include/js/Utility.h: In instantiation of 'void js_delete_poison(const T*) [with T = JSContext]': src/third_party/mozjs-60/extract/js/src/vm/JSContext.cpp:254:25: required from here src/third_party/mozjs-60/include/js/Utility.h:552:15: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'struct JSContext' with no trivial copy-assignment [-Wclass-memaccess] 552 | memset(const_cast(p), 0x3B, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:21, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:98:8: note: 'struct JSContext' declared here 98 | struct JSContext : public JS::RootingContext, | ^~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/base_cloner.h:39, from src/mongo/db/repl/collection_cloner.h:35, from src/mongo/db/repl/collection_cloner.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/base_cloner.h:39, from src/mongo/db/repl/collection_cloner.h:35, from src/mongo/db/repl/collection_cloner.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/operation_context_group.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/operation_context_group.cpp src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = JSAtom* const; HashPolicy = js::HashSet, js::SystemAllocPolicy>::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = JSAtom*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.cpp:1029:24: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/base_cloner.h:39, from src/mongo/db/repl/collection_cloner.h:35, from src/mongo/db/repl/collection_cloner.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::PropertyIteratorObject* const; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:1690:9: required from 'void js::detail::HashTable::clearAndShrink() [with T = js::PropertyIteratorObject* const; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/include/js/HashTable.h:451:76: required from 'void js::HashSet::clearAndShrink() [with T = js::PropertyIteratorObject*; HashPolicy = js::IteratorHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.cpp:1008:33: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Initialization.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/base_cloner.h:39, from src/mongo/db/repl/collection_cloner.h:35, from src/mongo/db/repl/collection_cloner.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_tanh.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/s_tanh.cpp g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/support/mtx_rw.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/mtx_rw.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/views/resolved_view.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/views/resolved_view.cpp In file included from src/mongo/db/views/resolved_view.h:37, from src/mongo/db/views/resolved_view.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/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 g++ -o build/opt/mongo/client/replica_set_change_notifier.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/replica_set_change_notifier.cpp g++ -o build/opt/mongo/client/connpool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/connpool.cpp In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineJIT.h:13, from src/third_party/mozjs-60/extract/js/src/jit/BaselineIC.h:15, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:22, from src/third_party/mozjs-60/extract/js/src/jit/AliasAnalysisShared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/AliasAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/Value.h:24, from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::jit::MDefinition* const; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::jit::JitAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::jit::MDefinition*; HashPolicy = js::jit::ValueNumberer::VisibleValues::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy]' src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:127:15: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::jit::JitAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::jit::JitAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/UnboxedObject-inl.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:24, from src/third_party/mozjs-60/extract/js/src/jit/BaselineIC.cpp:45, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h: In instantiation of 'T* js::jit::JitAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::jit::MDefinition* const; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::jit::MDefinition* const; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:350:65: required from 'bool js::HashSet::init(uint32_t) [with T = js::jit::MDefinition*; HashPolicy = js::jit::ValueNumberer::VisibleValues::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:83:21: required from here src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:101:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry' with no trivial copy-assignment [-Wclass-memaccess] 101 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/Value.h:24, from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h: In instantiation of 'T* js::jit::JitAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = JS::Value; Value = unsigned int; HashPolicy = js::jit::LIRGraph::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/jit/LIR.h:1893:37: required from here src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:101:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 101 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/Value.h:24, from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.h:10, from src/third_party/mozjs-60/extract/js/src/jit/ValueNumbering.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h: In instantiation of 'T* js::jit::JitAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = JS::Value; Value = unsigned int; HashPolicy = js::jit::LIRGraph::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/jit/LIR.h:1893:37: required from here src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:101:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 101 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/opt/mongo/client/server_ping_monitor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/server_ping_monitor.cpp Generating build/opt/mongo/client/global_conn_pool_gen.cpp g++ -o build/opt/mongo/client/global_conn_pool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/global_conn_pool.cpp g++ -o build/opt/mongo/client/server_is_master_monitor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/server_is_master_monitor.cpp g++ -o build/opt/mongo/client/global_conn_pool_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/client/global_conn_pool_gen.cpp g++ -o build/opt/mongo/client/mongo_uri_connect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/mongo_uri_connect.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/client/global_conn_pool_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/global_conn_pool_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/client/dbclient_rs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/dbclient_rs.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/global_conn_pool_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/global_conn_pool_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/client/streamable_replica_set_monitor_error_handler.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/streamable_replica_set_monitor_error_handler.cpp g++ -o build/opt/mongo/client/streamable_replica_set_monitor_query_processor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/streamable_replica_set_monitor_query_processor.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/client/replica_set_monitor_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/replica_set_monitor_manager.cpp g++ -o build/opt/mongo/client/dbclient_connection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/dbclient_connection.cpp g++ -o build/opt/mongo/client/scanning_replica_set_monitor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/scanning_replica_set_monitor.cpp g++ -o build/opt/mongo/client/replica_set_monitor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/replica_set_monitor.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient_connection.cpp:59: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient_connection.cpp:59: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient_connection.cpp:59: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient_connection.cpp:59: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/shard_key_pattern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/shard_key_pattern.cpp gcc -o build/opt/third_party/icu4c-57.1/source/common/ures_cnv.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ures_cnv.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/catalog/collection_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/collection_impl.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/s/shard_key_pattern.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/s/shard_key_pattern.cpp:40: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_impl.h:33, from src/mongo/db/catalog/collection_impl.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_impl.h:33, from src/mongo/db/catalog/collection_impl.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/s/shard_key_pattern.cpp:42: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/catalog/index_consistency.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/index_consistency.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_impl.h:33, from src/mongo/db/catalog/collection_impl.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_impl.h:33, from src/mongo/db/catalog/collection_impl.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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/global_conn_pool_gen.o build/opt/mongo/client/replica_set_change_notifier.o build/opt/mongo/client/replica_set_monitor.o build/opt/mongo/client/replica_set_monitor_manager.o build/opt/mongo/client/scanning_replica_set_monitor.o build/opt/mongo/client/streamable_replica_set_monitor.o build/opt/mongo/client/streamable_replica_set_monitor_query_processor.o build/opt/mongo/client/streamable_replica_set_monitor_error_handler.o build/opt/mongo/client/server_is_master_monitor.o build/opt/mongo/client/server_ping_monitor.o Skipping ranlib for thin archive build/opt/mongo/client/libclientdriver_network.a g++ -o build/opt/mongo/db/catalog/database_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/database_impl.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/catalog/validate_state.h:35, from src/mongo/db/catalog/index_consistency.h:33, from src/mongo/db/catalog/index_consistency.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/catalog/validate_state.h:35, from src/mongo/db/catalog/index_consistency.h:33, from src/mongo/db/catalog/index_consistency.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/catalog/validate_state.h:35, from src/mongo/db/catalog/index_consistency.h:33, from src/mongo/db/catalog/index_consistency.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/catalog/validate_state.h:35, from src/mongo/db/catalog/index_consistency.h:33, from src/mongo/db/catalog/index_consistency.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/catalog/index_catalog_entry_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/index_catalog_entry_impl.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/database_impl.h:32, from src/mongo/db/catalog/database_impl.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/database_impl.h:32, from src/mongo/db/catalog/database_impl.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/database_impl.h:32, from src/mongo/db/catalog/database_impl.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/database_impl.h:32, from src/mongo/db/catalog/database_impl.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/index_catalog_entry_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/index_catalog_entry_impl.cpp:40: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/index_catalog_entry_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/index_catalog_entry_impl.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/catalog/index_catalog_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/index_catalog_impl.cpp g++ -o build/opt/mongo/s/multi_statement_transaction_requests_sender.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/multi_statement_transaction_requests_sender.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/index_catalog_impl.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/multi_statement_transaction_requests_sender.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/index_catalog_impl.cpp:43: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/multi_statement_transaction_requests_sender.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/index_catalog_impl.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/index_catalog_impl.cpp:43: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/multi_statement_transaction_requests_sender.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/multi_statement_transaction_requests_sender.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_floorf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/s_floorf.cpp g++ -o build/opt/mongo/rpc/write_concern_error_detail.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/write_concern_error_detail.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/default_sink.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/default_sink.cpp g++ -o build/opt/mongo/db/repl/all_database_cloner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/all_database_cloner.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/session_update_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/session_update_tracker.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/base_cloner.h:39, from src/mongo/db/repl/all_database_cloner.h:34, from src/mongo/db/repl/all_database_cloner.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/base_cloner.h:39, from src/mongo/db/repl/all_database_cloner.h:34, from src/mongo/db/repl/all_database_cloner.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/support/cond_auto.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/cond_auto.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/pipeline/document_source_bucket.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_bucket.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/base_cloner.h:39, from src/mongo/db/repl/all_database_cloner.h:34, from src/mongo/db/repl/all_database_cloner.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/base_cloner.h:39, from src/mongo/db/repl/all_database_cloner.h:34, from src/mongo/db/repl/all_database_cloner.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/catalog/libcatalog_impl.a build/opt/mongo/db/catalog/collection_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 Skipping ranlib for thin archive build/opt/mongo/db/catalog/libcatalog_impl.a g++ -o build/opt/mongo/db/s/active_migrations_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/active_migrations_registry.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from build/opt/mongo/db/transaction_participant_gen.h:21, from src/mongo/db/repl/session_update_tracker.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from build/opt/mongo/db/transaction_participant_gen.h:21, from src/mongo/db/repl/session_update_tracker.cpp:41: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_bucket.h:32, from src/mongo/db/pipeline/document_source_bucket.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from build/opt/mongo/db/transaction_participant_gen.h:21, from src/mongo/db/repl/session_update_tracker.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from build/opt/mongo/db/transaction_participant_gen.h:21, from src/mongo/db/repl/session_update_tracker.cpp:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_bucket.h:32, from src/mongo/db/pipeline/document_source_bucket.cpp:30: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_bucket.h:32, from src/mongo/db/pipeline/document_source_bucket.cpp:30: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_bucket.h:32, from src/mongo/db/pipeline/document_source_bucket.cpp:30: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/active_migrations_registry.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/active_migrations_registry.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/active_migrations_registry.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/active_migrations_registry.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/btree/bt_random.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_random.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/db/commands/sessions_commands_gen.cpp g++ -o build/opt/mongo/db/commands/end_sessions_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/end_sessions_command.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/catalog/type_changelog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/catalog/type_changelog.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/end_sessions_command.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/catalog/drop_database.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/drop_database.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/end_sessions_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/end_sessions_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/end_sessions_command.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/update_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/update_metrics.cpp g++ -o build/opt/mongo/s/client/version_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/client/version_manager.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/catalog/drop_database.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call Generating build/opt/mongo/s/request_types/shard_collection_gen.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:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call Generating build/opt/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/catalog/drop_database.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/shardsvr_shard_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/shardsvr_shard_collection.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/catalog/drop_database.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/catalog/drop_database.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/client/version_manager.cpp: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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/client/version_manager.cpp:47: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/client/version_manager.cpp: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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/shardsvr_shard_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/client/version_manager.cpp:47: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/shardsvr_shard_collection.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/shardsvr_shard_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/shardsvr_shard_collection.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.cpp:35, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:23, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/startup_warnings_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/startup_warnings_common.cpp In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:23, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:23, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:12, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gc::TenureCountCache]': src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:159:42: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gc::TenureCountCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/Runtime.cpp:29, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:29: src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:152:8: note: 'struct js::gc::TenureCountCache' declared here 152 | struct TenureCountCache | ^~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::ProtectedDataNoCheckArgs]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.cpp:186:12: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::ProtectedDataNoCheckArgs'; use assignment instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:25, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/extract/js/src/threading/ProtectedData.h:126:7: note: 'class js::ProtectedDataNoCheckArgs' declared here 126 | class ProtectedDataNoCheckArgs : public ProtectedData | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/AllocPolicy.h:18, from src/third_party/mozjs-60/extract/js/src/jsapi.h:28, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/include/js/Utility.h: In instantiation of 'void js_delete_poison(const T*) [with T = JSContext]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.cpp:392:21: required from here src/third_party/mozjs-60/include/js/Utility.h:552:15: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'struct JSContext' with no trivial copy-assignment [-Wclass-memaccess] 552 | memset(const_cast(p), 0x3B, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsexn.h:17, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:24, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:98:8: note: 'struct JSContext' declared here 98 | struct JSContext : public JS::RootingContext, | ^~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::ReadBarriered; HashPolicy = js::HashSet, js::SavedFrame::HashPolicy, js::SystemAllocPolicy>::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::ReadBarriered; HashPolicy = js::SavedFrame::HashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/SavedStacks.cpp:1292:17: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashSet, js::SavedFrame::HashPolicy, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashSet, js::SavedFrame::HashPolicy, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-60/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ Generating build/opt/mongo/db/free_mon/free_mon_protocol_gen.cpp g++ -o build/opt/mongo/db/free_mon/free_mon_processor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_processor.cpp g++ -o build/opt/mongo/db/ops/parsed_update.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ops/parsed_update.cpp g++ -o build/opt/mongo/db/startup_warnings_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/startup_warnings_mongod.cpp g++ -o build/opt/mongo/logv2/log_domain_internal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logv2/log_domain_internal.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/ops/parsed_update.h:33, from src/mongo/db/ops/parsed_update.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/ops/parsed_update.h:35, from src/mongo/db/ops/parsed_update.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/create_indexes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/create_indexes.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:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/ops/parsed_update.h:35, from src/mongo/db/ops/parsed_update.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/ops/parsed_update.h:35, from src/mongo/db/ops/parsed_update.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/conn/conn_handle.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/conn/conn_handle.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/mirror_maestro.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/mirror_maestro.cpp src/mongo/db/ops/parsed_update.cpp: In static member function 'static mongo::StatusWith > > mongo::ParsedUpdate::parseArrayFilters(const boost::intrusive_ptr&, const std::vector&, const mongo::NamespaceString&)': src/mongo/db/ops/parsed_update.cpp:219:21: warning: redundant move in return statement [-Wredundant-move] 219 | return std::move(arrayFiltersOut); | ~~~~~~~~~^~~~~~~~~~~~~~~~~ src/mongo/db/ops/parsed_update.cpp:219:21: note: remove 'std::move' call g++ -o build/opt/mongo/bson/bson_comparator_interface_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/bson_comparator_interface_base.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/create_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/create_indexes.cpp:40: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/mirror_maestro.cpp:46: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/create_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/create_indexes.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/ops/parsed_update.h:35, from src/mongo/db/ops/parsed_update.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/unwind/dist/src/mi/strerror.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/mi/strerror.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/mozjs-60/extract/js/src/frontend/Parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/mirror_maestro.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/mirror_maestro.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/mirror_maestro.cpp:46: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/ops/libparsed_update.a build/opt/mongo/db/ops/parsed_update.o Skipping ranlib for thin archive build/opt/mongo/db/ops/libparsed_update.a Generating build/opt/mongo/db/commands/resize_oplog_gen.cpp g++ -o build/opt/mongo/db/commands/resize_oplog_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands/resize_oplog_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/resize_oplog_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/resize_oplog_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:171, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/gc/Policy.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Scope.h:15, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.h:14, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:174, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:171, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/gc/Policy.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Scope.h:15, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.h:14, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:174, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:171, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Scope.h:19, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.h:14, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:174, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:171, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Scope.h:19, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.h:14, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:174, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:171, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Scope.h:19, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.h:14, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:174, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:171, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:183, from src/third_party/mozjs-60/extract/js/src/frontend/ParseNode.h:13, from src/third_party/mozjs-60/extract/js/src/frontend/FullParseHandler.h:15, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:175, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:171, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:183, from src/third_party/mozjs-60/extract/js/src/frontend/ParseNode.h:13, from src/third_party/mozjs-60/extract/js/src/frontend/FullParseHandler.h:15, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:175, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:171, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:183, from src/third_party/mozjs-60/extract/js/src/frontend/ParseNode.h:13, from src/third_party/mozjs-60/extract/js/src/frontend/FullParseHandler.h:15, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:175, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:171, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:174, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:171, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/extract/js/src/vm/EnvironmentObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:46: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/resize_oplog_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/resize_oplog_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:174, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap >::MapHashPolicy; AllocPolicy = js::TempAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = js::frontend::UsedNameTracker::UsedNameInfo; HashPolicy = js::DefaultHasher; AllocPolicy = js::TempAllocPolicy]' src/third_party/mozjs-60/extract/js/src/frontend/ParseContext.h:167:19: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap >::MapHashPolicy, js::TempAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap >::MapHashPolicy, js::TempAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:171, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::GlobalScope::Data]': src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:1725:12: required from 'typename Scope::Data* js::frontend::NewEmptyBindingData(JSContext*, js::LifoAlloc&, uint32_t) [with Scope = js::GlobalScope; typename Scope::Data = js::GlobalScope::Data; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:1768:52: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::GlobalScope::Data'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.h:14, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:174, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/extract/js/src/vm/Scope.h:694:12: note: 'struct js::GlobalScope::Data' declared here 694 | struct Data | ^~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:171, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::ModuleScope::Data]': src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:1725:12: required from 'typename Scope::Data* js::frontend::NewEmptyBindingData(JSContext*, js::LifoAlloc&, uint32_t) [with Scope = js::ModuleScope; typename Scope::Data = js::ModuleScope::Data; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:1840:52: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'struct js::ModuleScope::Data' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.h:14, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:174, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/extract/js/src/vm/Scope.h:898:12: note: 'struct js::ModuleScope::Data' declared here 898 | struct Data | ^~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:171, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::EvalScope::Data]': src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:1725:12: required from 'typename Scope::Data* js::frontend::NewEmptyBindingData(JSContext*, js::LifoAlloc&, uint32_t) [with Scope = js::EvalScope; typename Scope::Data = js::EvalScope::Data; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:1897:50: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::EvalScope::Data'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.h:14, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:174, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/extract/js/src/vm/Scope.h:796:12: note: 'struct js::EvalScope::Data' declared here 796 | struct Data | ^~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:171, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::FunctionScope::Data]': src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:1725:12: required from 'typename Scope::Data* js::frontend::NewEmptyBindingData(JSContext*, js::LifoAlloc&, uint32_t) [with Scope = js::FunctionScope; typename Scope::Data = js::FunctionScope::Data; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:1994:54: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'struct js::FunctionScope::Data' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.h:14, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:174, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/extract/js/src/vm/Scope.h:479:12: note: 'struct js::FunctionScope::Data' declared here 479 | struct Data | ^~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:171, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::VarScope::Data]': src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:1725:12: required from 'typename Scope::Data* js::frontend::NewEmptyBindingData(JSContext*, js::LifoAlloc&, uint32_t) [with Scope = js::VarScope; typename Scope::Data = js::VarScope::Data; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:2042:49: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::VarScope::Data'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.h:14, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:174, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/extract/js/src/vm/Scope.h:604:12: note: 'struct js::VarScope::Data' declared here 604 | struct Data | ^~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:171, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::LexicalScope::Data]': src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:1725:12: required from 'typename Scope::Data* js::frontend::NewEmptyBindingData(JSContext*, js::LifoAlloc&, uint32_t) [with Scope = js::LexicalScope; typename Scope::Data = js::LexicalScope::Data; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:2095:53: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::LexicalScope::Data'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.h:14, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:174, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/extract/js/src/vm/Scope.h:376:12: note: 'struct js::LexicalScope::Data' declared here 376 | struct Data | ^~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:171, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:174, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:171, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:174, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:171, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:174, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:174, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:74:25: required from 'bool js::detail::InlineTable::switchToTable() [with InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:298:22: required from 'bool js::detail::InlineTable::add(js::detail::InlineTable::AddPtr&, KeyInput&&, Args&& ...) [with KeyInput = JSAtom*&; Args = {js::frontend::DeclaredNameInfo}; InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:535:25: required from 'bool js::InlineMap::add(js::InlineMap::AddPtr&, KeyInput&&, ValueInput&&) [with KeyInput = JSAtom*&; ValueInput = js::frontend::DeclaredNameInfo; Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; long unsigned int InlineEntries = 24; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; js::InlineMap::AddPtr = js::detail::InlineTable, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry, js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>, js::DefaultHasher, js::SystemAllocPolicy, 24>::AddPtr]' src/third_party/mozjs-60/extract/js/src/frontend/ParseContext.h:311:53: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/opt/mongo/executor/connection_pool_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/executor/connection_pool_stats.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/scripting/mozjs/bindata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/bindata.cpp g++ -o build/opt/mongo/db/auth/user_management_commands_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/user_management_commands_parser.cpp g++ -o build/opt/mongo/db/auth/privilege_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/privilege_parser.cpp In file included from src/third_party/mozjs-60/include/jspubtd.h:17, from src/third_party/mozjs-60/include/jsapi.h:26, from src/mongo/scripting/mozjs/wraptype.h:33, from src/mongo/scripting/mozjs/bindata.h:32, from src/mongo/scripting/mozjs/bindata.cpp:32: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/include/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/mongo/scripting/mozjs/bindata.cpp:94:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/jsapi.h:29, from src/mongo/scripting/mozjs/wraptype.h:33, from src/mongo/scripting/mozjs/bindata.h:32, from src/mongo/scripting/mozjs/bindata.cpp:32: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ g++ -o build/opt/mongo/db/auth/impersonation_session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/impersonation_session.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/auth/user_management_commands_parser.cpp:48: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/auth/resource_pattern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/resource_pattern.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/user_management_commands_parser.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/user_management_commands_parser.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/user_management_commands_parser.cpp:48: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/auth/action_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/action_set.cpp g++ -o build/opt/mongo/db/auth/action_type_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/auth/action_type_gen.cpp g++ -o build/opt/mongo/db/auth/privilege.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/privilege.cpp g++ -o build/opt/mongo/db/commands/pipeline_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/pipeline_command.cpp g++ -o build/opt/mongo/util/diagnostic_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/diagnostic_info.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/catalog/throttle_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/throttle_cursor.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/pipeline_command.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/auth/libauthprivilege.a build/opt/mongo/db/auth/action_set.o build/opt/mongo/db/auth/action_type_gen.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 g++ -o build/opt/third_party/shim_allocator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS src/third_party/shim_allocator.cpp g++ -o build/opt/mongo/db/pipeline/aggregation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/aggregation.cpp g++ -o build/opt/mongo/db/free_mon/free_mon_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_options.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/pipeline_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/pipeline_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/pipeline_command.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/catalog/throttle_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/catalog/throttle_cursor.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/catalog/throttle_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/catalog/throttle_cursor.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/libdiagnostic_info.a build/opt/mongo/util/diagnostic_info.o Skipping ranlib for thin archive build/opt/mongo/util/libdiagnostic_info.a g++ -o build/opt/mongo/logv2/shared_access_fstream.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logv2/shared_access_fstream.cpp gcc -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 -c -o build/opt/third_party/unwind/dist/src/x86_64/getcontext.o src/third_party/unwind/dist/src/x86_64/getcontext.S 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 -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_record_store.cpp g++ -o build/opt/mongo/util/text.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/text.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/block/block_tiered.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/block/block_tiered.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/ftdc/file_reader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ftdc/file_reader.cpp g++ -o build/opt/mongo/db/catalog/database_holder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/database_holder.cpp ar rcsTD build/opt/mongo/db/catalog/libthrottle_cursor.a build/opt/mongo/db/catalog/throttle_cursor.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libthrottle_cursor.a g++ -o build/opt/mongo/executor/network_interface_tl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/executor/network_interface_tl.cpp g++ -o build/opt/third_party/murmurhash3/MurmurHash3.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/fmt/dist/include src/third_party/murmurhash3/MurmurHash3.cpp Generating build/opt/mongo/db/pipeline/document_source_merge_gen.cpp Generating build/opt/mongo/db/pipeline/document_source_merge_modes_gen.cpp g++ -o build/opt/mongo/db/pipeline/document_source_merge_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/pipeline/document_source_merge_gen.cpp In file included from src/third_party/mozjs-60/extract/js/src/vm/UnboxedObject-inl.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:24, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:18, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/SymbolType.h:24, from src/third_party/mozjs-60/extract/js/src/gc/AtomMarking.h:13, from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpShared.h:25, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpShared.h:25, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/extract/js/src/vm/EnvironmentObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:19, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:18, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/catalog/database_holder.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 5]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 5]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/builtin/intl/CommonFunctions.cpp:28:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 7]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 7]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 5]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 5]' src/third_party/mozjs-60/extract/js/src/builtin/intl/CommonFunctions.cpp:50:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/WeakMapObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/WeakSetObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/catalog/database_holder.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/catalog/database_holder.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/catalog/database_holder.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_merge_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call Generating build/opt/mongo/db/catalog/commit_quorum_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_merge_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/catalog/commit_quorum_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/catalog/commit_quorum_gen.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:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_merge_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_merge_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/commit_quorum_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/commit_quorum_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/commit_quorum_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/commit_quorum_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/update_index_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update_index_data.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 g++ -o build/opt/mongo/db/auth/role_graph_update.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/role_graph_update.cpp g++ -o build/opt/mongo/db/auth/authorization_session_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/authorization_session_impl.cpp Generating build/opt/mongo/db/commands/vote_commit_index_build_gen.cpp g++ -o build/opt/mongo/db/commands/vote_commit_index_build_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/vote_commit_index_build_command.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/update/update_driver.h:42, from src/mongo/db/auth/role_graph_update.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/db/update/update_driver.h:42, from src/mongo/db/auth/role_graph_update.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/db/update/update_driver.h:42, from src/mongo/db/auth/role_graph_update.cpp:42: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/auth/authorization_session_impl.cpp:54: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/update/update_driver.h:42, from src/mongo/db/auth/role_graph_update.cpp:42: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call Generating build/opt/mongo/db/storage/wiredtiger/wiredtiger_parameters_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/vote_commit_index_build_command.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_parameters_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/storage/wiredtiger/wiredtiger_parameters_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/vote_commit_index_build_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/vote_commit_index_build_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/vote_commit_index_build_command.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/wiredtiger/wiredtiger_parameters_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/util/tcmalloc_parameters_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/util/tcmalloc_parameters_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/update/update_driver.h:42, from src/mongo/db/auth/role_graph_update.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/wiredtiger/wiredtiger_parameters_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/wiredtiger/wiredtiger_parameters_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/wiredtiger/wiredtiger_parameters_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/util/tcmalloc_parameters_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/tcmalloc_parameters_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/query/cursor_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/cursor_request.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:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/tcmalloc_parameters_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/tcmalloc_parameters_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/util/file.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/file.cpp /usr/bin/python3 site_scons/site_tools/jstoh.py build/opt/mongo/scripting/mozjs/mongohelpers_js.cpp src/mongo/scripting/mozjs/mongohelpers.js g++ -o build/opt/mongo/scripting/mozjs/mongohelpers_js.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/scripting/mozjs/mongohelpers_js.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/unifunct.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unifunct.cpp g++ -o build/opt/mongo/db/catalog/index_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/index_catalog.cpp g++ -o build/opt/mongo/db/auth/address_restriction.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/address_restriction.cpp g++ -o build/opt/mongo/db/auth/address_restriction_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/auth/address_restriction_gen.cpp g++ -o build/opt/mongo/db/commands/list_collections_filter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/list_collections_filter.cpp ar rcsTD build/opt/mongo/db/catalog/libindex_catalog.a build/opt/mongo/db/catalog/index_catalog.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libindex_catalog.a g++ -o build/opt/third_party/s2/s2regionintersection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2regionintersection.cc In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/address_restriction_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/catalog/catalog_control.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/catalog_control.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/text_ostream_backend.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/text_ostream_backend.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call Generating build/opt/mongo/db/repl/replication_metrics_gen.cpp Generating build/opt/mongo/db/traffic_recorder_gen.cpp g++ -o build/opt/mongo/db/repl/rs_rollback.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/rs_rollback.cpp g++ -o build/opt/mongo/db/traffic_recorder_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/traffic_recorder_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/catalog_control.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/catalog_control.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/catalog_control.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/traffic_recorder_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/catalog_control.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/traffic_recorder_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/repl/rs_rollback.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/traffic_recorder_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/traffic_recorder_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/repl/rs_rollback.cpp:42: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/repl/rs_rollback.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/repl/rs_rollback.cpp:42: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/db/index_build_entry_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index_build_entry_helpers.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/index_build_entry_helpers.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/index_build_entry_helpers.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/util/winutil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/winutil.cpp gcc -o build/opt/third_party/wiredtiger/src/btree/bt_vrfy.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_vrfy.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/opt/mongo/db/catalog/libcatalog_control.a build/opt/mongo/db/catalog/catalog_control.o In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/index_build_entry_helpers.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/catalog/libcatalog_control.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:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call g++ -o build/opt/mongo/util/periodic_runner_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/periodic_runner_impl.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/index_build_entry_helpers.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/abseil-cpp-master/abseil-cpp/absl/hash/internal/city.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/abseil-cpp-master/abseil-cpp src/third_party/abseil-cpp-master/abseil-cpp/absl/hash/internal/city.cc g++ -o build/opt/mongo/db/s/merge_chunks_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/merge_chunks_command.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/merge_chunks_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call 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 Generating build/opt/mongo/db/commands/list_databases_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/merge_chunks_command.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/list_databases_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands/list_databases_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/merge_chunks_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/merge_chunks_command.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/list_databases_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call Generating build/opt/mongo/rpc/rewrite_state_change_errors_server_parameter_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/rpc/rewrite_state_change_errors_server_parameter_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/rpc/rewrite_state_change_errors_server_parameter_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/rpc/rewrite_state_change_errors_server_parameter_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/rpc/rewrite_state_change_errors_server_parameter_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/rpc/rewrite_state_change_errors.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/rewrite_state_change_errors.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/rpc/rewrite_state_change_errors_server_parameter_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/rpc/rewrite_state_change_errors_server_parameter_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/rebuild_indexes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/rebuild_indexes.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 g++ -o build/opt/mongo/db/s/collection_sharding_state_factory_shard.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/collection_sharding_state_factory_shard.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/rebuild_indexes.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/rebuild_indexes.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call Generating build/opt/mongo/db/query/expression_index_knobs_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/rebuild_indexes.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/query/expression_index.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/expression_index.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:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/rebuild_indexes.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/rpc/librewrite_state_change_errors.a build/opt/mongo/rpc/rewrite_state_change_errors.o build/opt/mongo/rpc/rewrite_state_change_errors_server_parameter_gen.o Skipping ranlib for thin archive build/opt/mongo/rpc/librewrite_state_change_errors.a 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 gcc -o build/opt/third_party/wiredtiger/src/btree/bt_read.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_read.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/pipeline/expression_function.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/expression_function.cpp g++ -o build/opt/mongo/db/exec/projection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/projection.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/index_bounds_builder.h:34, from src/mongo/db/query/expression_index.h:38, from src/mongo/db/query/expression_index.cpp:30: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/index_bounds_builder.h:34, from src/mongo/db/query/expression_index.h:38, from src/mongo/db/query/expression_index.cpp:30: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:34, from src/mongo/db/query/expression_index.h:38, from src/mongo/db/query/expression_index.cpp:30: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/index_bounds_builder.h:34, from src/mongo/db/query/expression_index.h:38, from src/mongo/db/query/expression_index.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/expression.h:47, from src/mongo/db/pipeline/expression_function.h:32, from src/mongo/db/pipeline/expression_function.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/exec/projection.h:32, from src/mongo/db/exec/projection.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/projection.h:33, from src/mongo/db/exec/projection.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/projection.h:33, from src/mongo/db/exec/projection.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/projection.h:33, from src/mongo/db/exec/projection.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/index_bounds_builder.h:34, from src/mongo/db/query/expression_index.h:38, from src/mongo/db/query/expression_index.cpp:30: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/librebuild_indexes.a build/opt/mongo/db/rebuild_indexes.o Skipping ranlib for thin archive build/opt/mongo/db/librebuild_indexes.a 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 -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_init.cpp g++ -o build/opt/mongo/s/sharding_task_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/sharding_task_executor.cpp ar rcsTD build/opt/mongo/db/pipeline/libexpression_javascript.a build/opt/mongo/db/pipeline/expression_function.o build/opt/mongo/db/pipeline/expression_js_emit.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libexpression_javascript.a g++ -o build/opt/mongo/db/client_out_of_line_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/client_out_of_line_executor.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:42, from src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_init.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:42, from src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_init.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:42, from src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_init.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:42, from src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_init.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/sharding_task_executor.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/sharding_task_executor.cpp:48: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/sharding_task_executor.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/sharding_task_executor.cpp:48: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/rpc/op_msg.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/op_msg.cpp ar rcsTD build/opt/mongo/db/libclient_out_of_line_executor.a build/opt/mongo/db/client_out_of_line_executor.o Skipping ranlib for thin archive build/opt/mongo/db/libclient_out_of_line_executor.a g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_unique_items.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_unique_items.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.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:85:25: warning: redundant move in return statement [-Wredundant-move] 85 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:85: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:140:25: warning: redundant move in return statement [-Wredundant-move] 140 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:140: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:177:25: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:177: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 g++ -o build/opt/mongo/db/commands/list_databases.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/list_databases.cpp g++ -o build/opt/mongo/db/commands/feature_compatibility_version_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/feature_compatibility_version_parser.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/db/logical_clock_gen.cpp g++ -o build/opt/mongo/db/logical_clock_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/logical_clock_gen.cpp gcc -o build/opt/third_party/wiredtiger/src/cursor/cur_join.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/cursor/cur_join.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/ops/write_ops_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/ops/write_ops_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/commands/list_databases.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/commands/list_databases.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/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 g++ -o build/opt/mongo/db/ops/write_ops_parsers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ops/write_ops_parsers.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/commands/list_databases.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/commands/list_databases.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_clock_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_clock_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ops/write_ops_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/ops/write_ops_parsers.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_clock_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_clock_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/shim_zlib.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS 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 g++ -o build/opt/mongo/db/pipeline/lite_parsed_document_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/lite_parsed_document_source.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/lite_parsed_pipeline.h:38, from src/mongo/db/pipeline/lite_parsed_document_source.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/lsm/lsm_tree.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/lsm/lsm_tree.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/icu4c-57.1/source/common/servlkf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/servlkf.cpp g++ -o build/opt/mongo/db/exec/pipeline_proxy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/pipeline_proxy.cpp g++ -o build/opt/mongo/db/repl/oplog_interface_remote.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/oplog_interface_remote.cpp g++ -o build/opt/mongo/db/storage/remove_saver.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/remove_saver.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 g++ -o build/opt/mongo/db/auth/role_graph.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/role_graph.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/exec/pipeline_proxy.h:35, from src/mongo/db/exec/pipeline_proxy.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/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 g++ -o build/opt/mongo/s/stale_exception.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/stale_exception.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/exec/pipeline_proxy.h:37, from src/mongo/db/exec/pipeline_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/db/exec/pipeline_proxy.h:37, from src/mongo/db/exec/pipeline_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/db/exec/pipeline_proxy.h:37, from src/mongo/db/exec/pipeline_proxy.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call Generating build/opt/mongo/s/request_types/clear_jumbo_flag_gen.cpp g++ -o build/opt/mongo/s/request_types/clear_jumbo_flag_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/request_types/clear_jumbo_flag_gen.cpp g++ -o build/opt/mongo/stdx/set_terminate_internals.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/stdx/set_terminate_internals.cpp g++ -o build/opt/mongo/rpc/metadata/impersonated_user_metadata_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/rpc/metadata/impersonated_user_metadata_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clear_jumbo_flag_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/ftdc/varint.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ftdc/varint.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clear_jumbo_flag_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clear_jumbo_flag_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clear_jumbo_flag_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/tiered/tiered_config.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/tiered/tiered_config.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/base/string_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/string_data.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/rpc/metadata/impersonated_user_metadata_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call Generating build/opt/mongo/s/request_types/get_database_version_gen.cpp g++ -o build/opt/mongo/db/s/get_database_version_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/get_database_version_command.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/rpc/metadata/impersonated_user_metadata_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/rpc/metadata/impersonated_user_metadata_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/rpc/metadata/impersonated_user_metadata_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/stats/single_transaction_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/stats/single_transaction_stats.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/get_database_version_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/get_database_version_command.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/get_database_version_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/get_database_version_command.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/db/stats/single_transaction_stats.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/db/stats/single_transaction_stats.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call Generating build/opt/mongo/db/storage/storage_parameters_gen.cpp g++ -o build/opt/mongo/db/repl/replication_recovery.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/replication_recovery.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/db/stats/single_transaction_stats.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/db/stats/single_transaction_stats.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/two_phase_index_build_knobs_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/storage/two_phase_index_build_knobs_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/repl/replication_recovery.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/repl/replication_recovery.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/two_phase_index_build_knobs_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/two_phase_index_build_knobs_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/two_phase_index_build_knobs_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/two_phase_index_build_knobs_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/os_posix/os_yield.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_yield.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/executor/remote_command_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/executor/remote_command_request.cpp ar rcsTD build/opt/mongo/db/stats/libtransaction_stats.a build/opt/mongo/db/stats/single_transaction_stats.o Skipping ranlib for thin archive build/opt/mongo/db/stats/libtransaction_stats.a g++ -o build/opt/mongo/executor/remote_command_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/executor/remote_command_response.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_set.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_set.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/logger/log_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logger/log_manager.cpp 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 g++ -o build/opt/mongo/db/commands/validate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/validate.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/libtwo_phase_index_build_knobs_idl.a build/opt/mongo/db/storage/two_phase_index_build_knobs_gen.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libtwo_phase_index_build_knobs_idl.a g++ -o build/opt/mongo/db/pipeline/process_interface/common_mongod_process_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/process_interface/common_mongod_process_interface.cpp g++ -o build/opt/mongo/db/pipeline/process_interface/non_shardsvr_process_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/process_interface/non_shardsvr_process_interface.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/validate.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/validate.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/validate.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/validate.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/common_mongod_process_interface.h:37, from src/mongo/db/pipeline/process_interface/common_mongod_process_interface.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/db/repl/repl_set_request_votes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_request_votes.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:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/db/pipeline/process_interface/common_mongod_process_interface.h:37, from src/mongo/db/pipeline/process_interface/common_mongod_process_interface.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/db/pipeline/process_interface/common_mongod_process_interface.h:37, from src/mongo/db/pipeline/process_interface/common_mongod_process_interface.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/common_mongod_process_interface.h:37, from src/mongo/db/pipeline/process_interface/common_mongod_process_interface.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/non_shardsvr_process_interface.h:35, from src/mongo/db/pipeline/process_interface/non_shardsvr_process_interface.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/db/pipeline/process_interface/non_shardsvr_process_interface.h:35, from src/mongo/db/pipeline/process_interface/non_shardsvr_process_interface.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/db/pipeline/process_interface/non_shardsvr_process_interface.h:35, from src/mongo/db/pipeline/process_interface/non_shardsvr_process_interface.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/non_shardsvr_process_interface.h:35, from src/mongo/db/pipeline/process_interface/non_shardsvr_process_interface.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:34, from src/mongo/db/repl/repl_set_request_votes.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:34, from src/mongo/db/repl/repl_set_request_votes.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:34, from src/mongo/db/repl/repl_set_request_votes.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:34, from src/mongo/db/repl/repl_set_request_votes.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/common_mongod_process_interface.h:37, from src/mongo/db/pipeline/process_interface/common_mongod_process_interface.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/document_source_skip.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_skip.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/non_shardsvr_process_interface.h:35, from src/mongo/db/pipeline/process_interface/non_shardsvr_process_interface.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_skip.h:32, from src/mongo/db/pipeline/document_source_skip.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call Generating build/opt/mongo/db/commands/generic_gen.cpp g++ -o build/opt/mongo/db/commands/generic.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/generic.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_skip.h:32, from src/mongo/db/pipeline/document_source_skip.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/catalog/capped_utils.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/capped_utils.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_skip.h:32, from src/mongo/db/pipeline/document_source_skip.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_skip.h:32, from src/mongo/db/pipeline/document_source_skip.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/pipeline/process_interface/libmongod_process_interfaces.a build/opt/mongo/db/pipeline/process_interface/common_mongod_process_interface.o build/opt/mongo/db/pipeline/process_interface/non_shardsvr_process_interface.o build/opt/mongo/db/pipeline/process_interface/replica_set_node_process_interface.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/process_interface/libmongod_process_interfaces.a g++ -o build/opt/mongo/db/catalog/drop_indexes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/drop_indexes.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/create_collection.h:34, from src/mongo/db/catalog/capped_utils.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/create_collection.h:34, from src/mongo/db/catalog/capped_utils.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/create_collection.h:34, from src/mongo/db/catalog/capped_utils.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/create_collection.h:34, from src/mongo/db/catalog/capped_utils.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/commands/generic.cpp: In member function 'virtual bool mongo::{anonymous}::ListCommandsCmd::run(mongo::OperationContext*, const string&, const mongo::BSONObj&, mongo::BSONObjBuilder&)': src/mongo/db/commands/generic.cpp:166:25: warning: loop variable 'command' creates a copy from type 'const std::pair, mongo::Command*>' [-Wrange-loop-construct] 166 | for (const auto command : globalCommandRegistry()->allCommands()) { | ^~~~~~~ src/mongo/db/commands/generic.cpp:166:25: note: use reference type to prevent copying 166 | for (const auto command : globalCommandRegistry()->allCommands()) { | ^~~~~~~ | & In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/catalog/drop_indexes.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/catalog/drop_indexes.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/catalog/drop_indexes.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/catalog/drop_indexes.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/catalog/collection_compact.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/collection_compact.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/collection_compact.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/collection_compact.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/catalog/coll_mod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/coll_mod.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/collection_compact.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/collection_compact.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/catalog/create_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/create_collection.cpp g++ -o build/opt/mongo/db/catalog/drop_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/drop_collection.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/catalog/coll_mod.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/catalog/coll_mod.cpp:45: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/create_collection.h:34, from src/mongo/db/catalog/create_collection.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/catalog/coll_mod.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/catalog/coll_mod.cpp:45: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/create_collection.h:34, from src/mongo/db/catalog/create_collection.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/create_collection.h:34, from src/mongo/db/catalog/create_collection.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/create_collection.h:34, from src/mongo/db/catalog/create_collection.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/catalog/drop_collection.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/catalog/drop_collection.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/catalog/drop_collection.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/catalog/drop_collection.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/catalog/list_indexes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/list_indexes.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/catalog/list_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/catalog/list_indexes.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/catalog/list_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/catalog/list_indexes.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/db/s/sharding_runtime_d_params_gen.cpp g++ -o build/opt/mongo/db/s/migration_destination_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/migration_destination_manager.cpp Generating build/opt/mongo/s/mongos_server_parameters_gen.cpp g++ -o build/opt/mongo/s/hedge_options_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/hedge_options_util.cpp g++ -o build/opt/mongo/db/s/namespace_metadata_change_notifications.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/namespace_metadata_change_notifications.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/s/migration_destination_manager.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/s/migration_destination_manager.cpp:41: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/s/migration_destination_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/s/migration_destination_manager.cpp:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/s/libhedge_options_util.a build/opt/mongo/s/hedge_options_util.o Skipping ranlib for thin archive build/opt/mongo/s/libhedge_options_util.a gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/deprecated/zbuff_common.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/deprecated/zbuff_common.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/profile_filter_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/profile_filter_impl.cpp gcc -o build/opt/third_party/wiredtiger/src/btree/col_modify.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/col_modify.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/cursor/cur_stat.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/cursor/cur_stat.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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/collection_compact.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 build/opt/mongo/db/catalog/list_indexes.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libcatalog_helpers.a g++ -o build/opt/mongo/db/pipeline/document_source_documents.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_documents.cpp g++ -o build/opt/mongo/db/exec/stagedebug_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/stagedebug_cmd.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/profile_filter_impl.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/profile_filter_impl.h:34, from src/mongo/db/profile_filter_impl.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/profile_filter_impl.h:34, from src/mongo/db/profile_filter_impl.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/profile_filter_impl.h:34, from src/mongo/db/profile_filter_impl.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_documents.h:32, from src/mongo/db/pipeline/document_source_documents.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_documents.h:32, from src/mongo/db/pipeline/document_source_documents.cpp:30: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/exec/stagedebug_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_documents.h:32, from src/mongo/db/pipeline/document_source_documents.cpp:30: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_documents.h:32, from src/mongo/db/pipeline/document_source_documents.cpp:30: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/exec/stagedebug_cmd.cpp:40: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/exec/stagedebug_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/exec/stagedebug_cmd.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/session_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/session_catalog.cpp gcc -o build/opt/third_party/wiredtiger/src/btree/bt_curnext.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_curnext.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/db/pipeline/value_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/value_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/pipeline/value_gen.cpp g++ -o build/opt/mongo/db/commands/kill_sessions_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/kill_sessions_command.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/value_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/value_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/db/commands/hashcmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/hashcmd.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:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/value_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/value_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_sessions_command.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libsession_catalog.a build/opt/mongo/db/session_catalog.o Skipping ranlib for thin archive build/opt/mongo/db/libsession_catalog.a g++ -o build/opt/mongo/db/commands/refresh_logical_session_cache_now.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/refresh_logical_session_cache_now.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_sessions_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_sessions_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_sessions_command.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/hashcmd.cpp:42: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/hashcmd.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/hashcmd.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/hashcmd.cpp:42: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_logical_session_cache_now.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_logical_session_cache_now.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_logical_session_cache_now.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_logical_session_cache_now.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/parse_log_component_settings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/parse_log_component_settings.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/kill_all_sessions_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/kill_all_sessions_command.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/sessions_commands_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands/sessions_commands_gen.cpp g++ -o build/opt/mongo/db/commands/kill_all_sessions_by_pattern_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_command.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/find_and_modify_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/find_and_modify_common.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/sessions_commands_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_command.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/sessions_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/sessions_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/sessions_commands_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_by_pattern_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/find_and_modify_common.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_by_pattern_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/find_and_modify_common.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/find_and_modify_common.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/find_and_modify_common.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/db/commands/parameters_gen.cpp g++ -o build/opt/mongo/db/commands/refresh_sessions_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/refresh_sessions_command.cpp g++ -o build/opt/mongo/db/commands/parameters_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands/parameters_gen.cpp g++ -o build/opt/mongo/db/commands/parameters.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/parameters.cpp g++ -o build/opt/mongo/db/commands/start_session_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/start_session_command.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/parameters_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/parameters_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/parameters_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/parameters_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/parameters.cpp:42: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/start_session_command.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/parameters.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/parameters.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/parameters.cpp:42: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/start_session_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/start_session_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/start_session_command.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/rename_collection_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/rename_collection_common.cpp g++ -o build/opt/mongo/db/commands/generic_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands/generic_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/generic_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call Generating build/opt/mongo/s/request_types/wait_for_fail_point_gen.cpp g++ -o build/opt/mongo/db/commands/fail_point_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/fail_point_cmd.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/generic_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbiscan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/rbbiscan.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:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/evict/evict_lru.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/evict/evict_lru.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/generic_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/generic_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/optime_base_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/repl/optime_base_gen.cpp g++ -o build/opt/mongo/util/boost_assert_shim.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/boost_assert_shim.cpp g++ -o build/opt/mongo/s/write_ops/batched_command_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/write_ops/batched_command_request.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fail_point_cmd.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fail_point_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/optime_base_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fail_point_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fail_point_cmd.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/write_ops/batched_command_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/write_ops/batched_command_response.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/optime_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/optime_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/optime_base_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/write_ops/write_error_detail.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/write_ops/write_error_detail.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/write_ops/batched_command_response.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/write_ops/batched_command_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/write_ops/batched_command_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/write_ops/batched_command_response.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/write_ops/batched_upsert_detail.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/write_ops/batched_upsert_detail.cpp ar rcsTD build/opt/mongo/db/commands/libcore.a 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/parse_log_component_settings.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 build/opt/mongo/db/commands/update_metrics.o build/opt/mongo/db/commands/parameters_gen.o build/opt/mongo/db/commands/sessions_commands_gen.o build/opt/mongo/db/commands/generic_gen.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libcore.a Generating build/opt/mongo/s/router_transactions_stats_gen.cpp g++ -o build/opt/mongo/s/router_transactions_stats_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/router_transactions_stats_gen.cpp g++ -o build/opt/mongo/s/transaction_router.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/transaction_router.cpp ar rcsTD build/opt/mongo/db/repl/liboptime_base.a build/opt/mongo/db/repl/optime_base_gen.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liboptime_base.a g++ -o build/opt/mongo/s/router_transactions_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/router_transactions_metrics.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/router_transactions_stats_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/router_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/router_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/transaction_router.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/router_transactions_stats_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/router_transactions_metrics.h:35, from src/mongo/s/router_transactions_metrics.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/transaction_router.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/router_transactions_metrics.h:35, from src/mongo/s/router_transactions_metrics.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/transaction_router.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/router_transactions_metrics.h:35, from src/mongo/s/router_transactions_metrics.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/transaction_router.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/router_transactions_metrics.h:35, from src/mongo/s/router_transactions_metrics.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 Skipping ranlib for thin archive build/opt/mongo/s/write_ops/libbatch_write_types.a g++ -o build/opt/mongo/s/session_catalog_router.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/session_catalog_router.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/session_catalog_router.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/session_catalog_router.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call Generating build/opt/mongo/db/commands/http_client_gen.cpp g++ -o build/opt/mongo/db/commands/http_client.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/http_client.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/session_catalog_router.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/session_catalog_router.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/shim_pcrecpp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS src/third_party/shim_pcrecpp.cc g++ -o build/opt/mongo/platform/posix_fadvise.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/platform/posix_fadvise.cpp g++ -o build/opt/mongo/s/chunk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/chunk.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/http_client.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/http_client.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/http_client.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/http_client.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/chunk_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/chunk_manager.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/base/error_extra_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/error_extra_info.cpp ar rcsTD build/opt/mongo/s/libsharding_router_api.a build/opt/mongo/s/cluster_commands_helpers.o build/opt/mongo/s/multi_statement_transaction_requests_sender.o build/opt/mongo/s/transaction_router.o build/opt/mongo/s/router_transactions_metrics.o build/opt/mongo/s/session_catalog_router.o build/opt/mongo/s/router_transactions_stats_gen.o Skipping ranlib for thin archive build/opt/mongo/s/libsharding_router_api.a g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_global_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_global_options.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/s/chunk_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/s/chunk_manager.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/bson_collection_catalog_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/bson_collection_catalog_entry.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/index_bounds_builder.h:34, from src/mongo/s/chunk_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:34, from src/mongo/s/chunk_manager.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/reporter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/reporter.cpp Generating build/opt/mongo/s/request_types/balancer_collection_status_gen.cpp g++ -o build/opt/mongo/db/s/balancer/balancer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/balancer/balancer.cpp 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 g++ -o build/opt/mongo/db/signed_logical_time.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/signed_logical_time.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/global_logger_storage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/global_logger_storage.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/uset_props.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uset_props.cpp g++ -o build/opt/mongo/db/pipeline/document_source_add_fields.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_add_fields.cpp 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 gcc -o build/opt/third_party/kms-message/src/kms_azure_request.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DKMS_MSG_STATIC -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO -Isrc/third_party/kms-message/src src/third_party/kms-message/src/kms_azure_request.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/util/options_parser/value.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/options_parser/value.cpp gcc -o build/opt/third_party/wiredtiger/src/cursor/cur_table.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/cursor/cur_table.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 g++ -o build/opt/mongo/logv2/plain_formatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logv2/plain_formatter.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/unistr_props.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unistr_props.cpp g++ -o build/opt/mongo/db/storage/recovery_unit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/recovery_unit.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_add_fields.h:32, from src/mongo/db/pipeline/document_source_add_fields.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/auth/restriction_environment.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/restriction_environment.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_add_fields.h:32, from src/mongo/db/pipeline/document_source_add_fields.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_add_fields.h:32, from src/mongo/db/pipeline/document_source_add_fields.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_add_fields.h:32, from src/mongo/db/pipeline/document_source_add_fields.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call Generating build/opt/mongo/db/commands/profile_gen.cpp g++ -o build/opt/mongo/db/commands/dbcommands_d.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/dbcommands_d.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 g++ -o build/opt/mongo/scripting/mozjs/jsthread.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/jsthread.cpp gcc -o build/opt/third_party/wiredtiger/src/config/config_check.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/config/config_check.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for 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 g++ -o build/opt/mongo/db/query/killcursors_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/killcursors_request.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/commands/dbcommands_d.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/commands/dbcommands_d.cpp:50: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_request.h:36, from src/mongo/db/query/killcursors_request.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/commands/dbcommands_d.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/commands/dbcommands_d.cpp:50: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_request.h:36, from src/mongo/db/query/killcursors_request.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/util.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_request.h:36, from src/mongo/db/query/killcursors_request.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_request.h:36, from src/mongo/db/query/killcursors_request.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/btree/bt_sync.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_sync.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/boost-1.70.0/libs/program_options/src/cmdline.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/program_options/src/cmdline.cpp g++ -o build/opt/mongo/db/storage/kv/kv_drop_pending_ident_reaper.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/kv/kv_drop_pending_ident_reaper.cpp g++ -o build/opt/mongo/db/update/modifier_table.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/modifier_table.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/update/update_leaf_node.h:32, from src/mongo/db/update/modifier_table.h:32, from src/mongo/db/update/modifier_table.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/feature_compatibility_version_command_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/feature_compatibility_version_command_parser.cpp In file included from src/mongo/db/update/modifier_table.cpp:41: src/mongo/db/update/bit_node.h: In member function 'virtual mongo::BSONObj mongo::BitNode::operatorValue() const': src/mongo/db/update/bit_node.h:75:29: warning: loop variable '' creates a copy from type 'const mongo::BitNode::BitwiseOp' [-Wrange-loop-construct] 75 | for (const auto [bitOperator, operand] : _opList) { | ^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/update/bit_node.h:75:29: note: use reference type to prevent copying 75 | for (const auto [bitOperator, operand] : _opList) { | ^~~~~~~~~~~~~~~~~~~~~~ | & g++ -o build/opt/mongo/db/pipeline/document_source_change_stream_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/pipeline/document_source_change_stream_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/feature_compatibility_version_command_parser.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_change_stream_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/feature_compatibility_version_command_parser.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/type_shard_identity.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/type_shard_identity.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:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call gcc -o build/opt/third_party/unwind/dist/src/mi/Lset_fpreg.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/mi/Lset_fpreg.c src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/feature_compatibility_version_command_parser.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/feature_compatibility_version_command_parser.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_change_stream_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_change_stream_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_change_stream_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/util/concurrency/ticketholder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/concurrency/ticketholder.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call 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 gcc -o build/opt/third_party/wiredtiger/src/txn/txn_timestamp.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/txn/txn_timestamp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 g++ -o build/opt/mongo/db/index/btree_key_generator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index/btree_key_generator.cpp g++ -o build/opt/mongo/rpc/legacy_reply.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/legacy_reply.cpp g++ -o build/opt/mongo/platform/strcasestr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/platform/strcasestr.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/dictbe.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/dictbe.cpp gcc -o build/opt/third_party/unwind/dist/src/mi/mempool.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/mi/mempool.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/s/split_chunk_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/split_chunk_command.cpp In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h: In instantiation of 'T* js::jit::JitAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = JS::Value; Value = unsigned int; HashPolicy = js::jit::LIRGraph::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/jit/LIR.h:1893:37: required from here src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:101:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 101 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x64/Lowering-x64.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/opt/mongo/db/s/config/configsvr_shard_collection_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_shard_collection_command.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_chunk_command.cpp:41: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/config/configsvr_balancer_collection_status_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_balancer_collection_status_command.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_chunk_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_chunk_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_chunk_command.cpp:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/config/configsvr_merge_chunks_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_merge_chunks_command.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_shard_collection_command.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_shard_collection_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_shard_collection_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_shard_collection_command.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/config/configsvr_balancer_collection_status_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/config/configsvr_balancer_collection_status_command.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_merge_chunks_command.cpp:31: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/config/configsvr_balancer_collection_status_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/config/configsvr_balancer_collection_status_command.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_merge_chunks_command.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_merge_chunks_command.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_merge_chunks_command.cpp:31: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call 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 -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/migration_destination_manager_legacy_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/migration_destination_manager_legacy_commands.cpp g++ -o build/opt/mongo/db/s/sharding_server_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/sharding_server_status.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_to_zone_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/config/configsvr_clear_jumbo_flag_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_clear_jumbo_flag_command.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:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_to_zone_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/migration_destination_manager_legacy_commands.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/sharding_server_status.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_clear_jumbo_flag_command.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/sharding_server_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/migration_destination_manager_legacy_commands.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/migration_destination_manager_legacy_commands.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/migration_destination_manager_legacy_commands.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/sharding_server_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/sharding_server_status.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_clear_jumbo_flag_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_clear_jumbo_flag_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_clear_jumbo_flag_command.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call Generating build/opt/mongo/s/request_types/clone_catalog_data_gen.cpp g++ -o build/opt/mongo/db/s/clone_catalog_data_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/clone_catalog_data_command.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_catalog_data_command.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call Generating build/opt/mongo/s/request_types/flush_database_cache_updates_gen.cpp g++ -o build/opt/mongo/db/s/flush_database_cache_updates_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/flush_database_cache_updates_command.cpp g++ -o build/opt/mongo/db/s/get_shard_version_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/get_shard_version_command.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/move_primary_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/move_primary_command.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:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/flush_database_cache_updates_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/get_shard_version_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/get_shard_version_command.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_primary_command.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/flush_database_cache_updates_command.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/flush_database_cache_updates_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/get_shard_version_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/flush_database_cache_updates_command.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/get_shard_version_command.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_primary_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_primary_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_primary_command.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/migration_chunk_cloner_source_legacy_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/move_chunk_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/move_chunk_command.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/clone_collection_options_from_primary_shard_cmd.cpp g++ -o build/opt/mongo/db/s/config/configsvr_control_balancer_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_control_balancer_command.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_chunk_command.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_collection_options_from_primary_shard_cmd.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_control_balancer_command.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_chunk_command.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_chunk_command.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_chunk_command.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_collection_options_from_primary_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_collection_options_from_primary_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_collection_options_from_primary_shard_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_control_balancer_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_control_balancer_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_control_balancer_command.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/sharding_state_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/sharding_state_command.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/check_sharding_index_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/check_sharding_index_command.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/sharding_state_command.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call 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 -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp g++ -o build/opt/mongo/db/s/config/configsvr_remove_shard_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_remove_shard_command.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/sharding_state_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/sharding_state_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/sharding_state_command.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/check_sharding_index_command.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/check_sharding_index_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_command.cpp:41: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/check_sharding_index_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/check_sharding_index_command.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_update_zone_key_range_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_update_zone_key_range_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_command.cpp:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/config/configsvr_add_shard_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_add_shard_command.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/unset_sharding_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/unset_sharding_command.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_command.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/config/configsvr_merge_chunk_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_merge_chunk_command.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_command.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/config/configsvr_split_chunk_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_split_chunk_command.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/unset_sharding_command.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_merge_chunk_command.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/unset_sharding_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_merge_chunk_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/unset_sharding_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/unset_sharding_command.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_split_chunk_command.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_merge_chunk_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_merge_chunk_command.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_split_chunk_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_split_chunk_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_split_chunk_command.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/cleanup_orphaned_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/cleanup_orphaned_cmd.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/config/configsvr_move_primary_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_move_primary_command.cpp g++ -o build/opt/mongo/db/s/config/configsvr_move_chunk_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_move_chunk_command.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/cleanup_orphaned_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/cleanup_orphaned_cmd.cpp:40: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/txn_two_phase_commit_cmds.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/txn_two_phase_commit_cmds.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/cleanup_orphaned_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/cleanup_orphaned_cmd.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_primary_command.cpp:40: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_chunk_command.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_primary_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_primary_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_primary_command.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_chunk_command.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_chunk_command.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_chunk_command.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/txn_two_phase_commit_cmds.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/txn_two_phase_commit_cmds.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/txn_two_phase_commit_cmds.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/txn_two_phase_commit_cmds.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/s/request_types/create_collection_gen.cpp g++ -o build/opt/mongo/db/s/config/configsvr_create_collection_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_create_collection_command.cpp g++ -o build/opt/mongo/db/s/config/configsvr_create_database_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_create_database_command.cpp g++ -o build/opt/mongo/db/s/config/configsvr_commit_chunk_migration_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_collection_command.cpp:41: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_database_command.cpp:41: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_collection_command.cpp:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_database_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_database_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_database_command.cpp:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call 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 -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_chunk_migration_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_chunk_migration_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_from_zone_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_from_zone_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/s/request_types/refine_collection_shard_key_gen.cpp g++ -o build/opt/mongo/db/s/config/configsvr_refine_collection_shard_key_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_refine_collection_shard_key_command.cpp Generating build/opt/mongo/s/request_types/ensure_chunk_version_is_greater_than_gen.cpp g++ -o build/opt/mongo/db/s/config/configsvr_ensure_chunk_version_is_greater_than_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_ensure_chunk_version_is_greater_than_command.cpp g++ -o build/opt/mongo/db/s/config/configsvr_commit_move_primary_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_commit_move_primary_command.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_refine_collection_shard_key_command.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_refine_collection_shard_key_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_refine_collection_shard_key_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_refine_collection_shard_key_command.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_ensure_chunk_version_is_greater_than_command.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_move_primary_command.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_ensure_chunk_version_is_greater_than_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_ensure_chunk_version_is_greater_than_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_ensure_chunk_version_is_greater_than_command.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_move_primary_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/add_shard_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/add_shard_cmd.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:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_move_primary_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_move_primary_command.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/add_shard_cmd.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/add_shard_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/add_shard_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/add_shard_cmd.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/config/configsvr_drop_database_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_drop_database_command.cpp g++ -o build/opt/mongo/db/s/set_shard_version_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/set_shard_version_command.cpp g++ -o build/opt/third_party/s2/s1interval.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s1interval.cc gcc -o build/opt/third_party/kms-message/src/kms_response_parser.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DKMS_MSG_STATIC -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO -Isrc/third_party/kms-message/src src/third_party/kms-message/src/kms_response_parser.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/bloom/bloom.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/bloom/bloom.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/mozjs-60/extract/js/src/vm/Interpreter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_database_command.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_database_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/set_shard_version_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_database_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_database_command.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/set_shard_version_command.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/set_shard_version_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/set_shard_version_command.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/support/timestamp.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/timestamp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/util/net/http_client_curl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/http_client_curl.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/net/http_client_curl.cpp:47: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/vm/UnboxedObject-inl.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:24, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/net/http_client_curl.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/net/http_client_curl.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/net/http_client_curl.cpp:47: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/extract/js/src/vm/EnvironmentObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:19, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ g++ -o build/opt/mongo/s/catalog/type_database.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/catalog/type_database.cpp In file included from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/extract/js/src/vm/EnvironmentObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:19, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h: In instantiation of 'T* js::jit::JitAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = JS::Value; Value = unsigned int; HashPolicy = js::jit::LIRGraph::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/jit/LIR.h:1893:37: required from here src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:101:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 101 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.cpp:11: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/s/libsharding_commands_d.a build/opt/mongo/db/s/add_shard_cmd.o 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_balancer_collection_status_command.o build/opt/mongo/db/s/config/configsvr_clear_jumbo_flag_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_ensure_chunk_version_is_greater_than_command.o build/opt/mongo/db/s/config/configsvr_merge_chunk_command.o build/opt/mongo/db/s/config/configsvr_merge_chunks_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_refine_collection_shard_key_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/sharding_server_status.o build/opt/mongo/db/s/sharding_state_command.o build/opt/mongo/db/s/shardsvr_shard_collection.o build/opt/mongo/db/s/split_chunk_command.o build/opt/mongo/db/s/split_vector_command.o build/opt/mongo/db/s/txn_two_phase_commit_cmds.o build/opt/mongo/db/s/unset_sharding_command.o build/opt/mongo/db/s/wait_for_ongoing_chunk_splits_command.o Skipping ranlib for thin archive build/opt/mongo/db/s/libsharding_commands_d.a gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/decompress/zstd_ddict.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/decompress/zstd_ddict.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp g++ -o build/opt/third_party/s2/base/int128.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/base/int128.cc g++ -o build/opt/mongo/db/pipeline/document_path_support.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_path_support.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/replication_coordinator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/replication_coordinator.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/document_path_support.h:38, from src/mongo/db/pipeline/document_path_support.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/util/str_escape.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/str_escape.cpp g++ -o build/opt/mongo/db/repl/collection_bulk_loader_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/collection_bulk_loader_impl.cpp In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/threading/posix/Thread.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/AllocPolicy.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:20: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/threading/posix/Thread.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/AllocPolicy.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:20: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/threading/posix/Thread.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/AllocPolicy.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:20: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/threading/posix/Thread.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/AllocPolicy.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:20: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/threading/posix/Thread.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/AllocPolicy.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:20: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/threading/posix/Thread.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/AllocPolicy.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:20: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/threading/posix/Thread.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/AllocPolicy.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:20: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/threading/posix/Thread.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/AllocPolicy.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:20: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/threading/posix/Thread.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/threading/posix/Thread.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/threading/posix/Thread.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/extract/js/src/util/StringBuffer.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:47: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ gcc -o build/opt/third_party/unwind/dist/src/x86_64/Los-linux.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/x86_64/Los-linux.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/Value.h:24, from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/threading/posix/Thread.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:11: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/threading/posix/Thread.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/threading/posix/Thread.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/threading/posix/Thread.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/threading/posix/Thread.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/threading/posix/Thread.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/threading/posix/Thread.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ g++ -o build/opt/mongo/logv2/log_domain_global.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logv2/log_domain_global.cpp ar rcsTD build/opt/mongo/db/pipeline/libdocument_path_support.a build/opt/mongo/db/pipeline/document_path_support.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libdocument_path_support.a g++ -o build/opt/mongo/scripting/mozjs/global.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/global.cpp g++ -o build/opt/mongo/db/query/plan_cache_indexability.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/plan_cache_indexability.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/collection_bulk_loader_impl.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/collection_bulk_loader_impl.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/third_party/boost-1.70.0/boost/thread/thread_only.hpp:17, from src/third_party/boost-1.70.0/boost/thread/thread.hpp:12, from src/third_party/boost-1.70.0/boost/log/sinks/async_frontend.hpp:39, from src/third_party/boost-1.70.0/boost/log/sinks.hpp:25, from src/mongo/logv2/uassert_sink.h:35, from src/mongo/logv2/log_domain_global.cpp:43: src/third_party/boost-1.70.0/boost/thread/pthread/thread_data.hpp: In member function 'void boost::thread_attributes::set_stack_size(std::size_t)': src/third_party/boost-1.70.0/boost/thread/pthread/thread_data.hpp:61:19: warning: comparison of integer expressions of different signedness: 'std::size_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare] 61 | if (size mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/projection_executor.h:38, from src/mongo/db/exec/projection_executor_utils.h:33, from src/mongo/db/query/plan_cache_indexability.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/collection_bulk_loader_impl.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/projection_executor_utils.h:33, from src/mongo/db/query/plan_cache_indexability.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/projection_executor_utils.h:33, from src/mongo/db/query/plan_cache_indexability.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/projection_executor_utils.h:33, from src/mongo/db/query/plan_cache_indexability.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/query/expression_index_knobs_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/query/expression_index_knobs_gen.cpp In file included from src/mongo/db/query/planner_ixselect.h:32, from src/mongo/db/query/plan_cache_indexability.cpp:47: 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:85:25: warning: redundant move in return statement [-Wredundant-move] 85 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:85: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:140:25: warning: redundant move in return statement [-Wredundant-move] 140 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:140: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:177:25: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:177:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/query/plan_enumerator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/plan_enumerator.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/expression_index_knobs_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/projection_executor_utils.h:33, from src/mongo/db/query/plan_cache_indexability.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_enumerator.h:35, from src/mongo/db/query/plan_enumerator.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/expression_index_knobs_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_enumerator.h:35, from src/mongo/db/query/plan_enumerator.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/expression_index_knobs_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/expression_index_knobs_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_enumerator.h:35, from src/mongo/db/query/plan_enumerator.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_enumerator.h:35, from src/mongo/db/query/plan_enumerator.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/query/query_planner_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/query_planner_common.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/query/index_tag.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/index_tag.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection_ast_path_tracking_visitor.h:36, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection_ast_path_tracking_visitor.h:36, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection_ast_path_tracking_visitor.h:36, from src/mongo/db/query/query_planner_common.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection_ast_path_tracking_visitor.h:36, from src/mongo/db/query/query_planner_common.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/query/index_tag.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:85:25: warning: redundant move in return statement [-Wredundant-move] 85 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:85: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:140:25: warning: redundant move in return statement [-Wredundant-move] 140 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:140: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:177:25: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:177:25: note: remove 'std::move' call In file included from src/mongo/db/query/index_tag.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/query/plan_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/plan_cache.cpp g++ -o build/opt/mongo/db/query/index_bounds.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/index_bounds.cpp g++ -o build/opt/mongo/db/query/planner_ixselect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/planner_ixselect.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection_ast_path_tracking_visitor.h:36, 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::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/plan_cache.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/plan_cache.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/plan_cache.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/plan_cache.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/plan_cache.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/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:85:25: warning: redundant move in return statement [-Wredundant-move] 85 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:85: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:140:25: warning: redundant move in return statement [-Wredundant-move] 140 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:140: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:177:25: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:177:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/query/query_settings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/query_settings.cpp In file included from src/mongo/db/query/planner_ixselect.h:32, from src/mongo/db/query/planner_ixselect.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:85:25: warning: redundant move in return statement [-Wredundant-move] 85 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:85: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:140:25: warning: redundant move in return statement [-Wredundant-move] 140 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:140: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:177:25: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:177:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/planner_ixselect.h:33, from src/mongo/db/query/planner_ixselect.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/query/index_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/index_entry.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/planner_ixselect.h:33, from src/mongo/db/query/planner_ixselect.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.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: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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.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:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/query_settings.h:37, from src/mongo/db/query/query_settings.cpp:30: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/query_settings.h:37, from src/mongo/db/query/query_settings.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/query_settings.h:37, from src/mongo/db/query/query_settings.cpp:30: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/plan_cache.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/query_settings.h:37, from src/mongo/db/query/query_settings.cpp:30: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/query/planner_access.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/planner_access.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/planner_access.h:32, from src/mongo/db/query/planner_access.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/planner_access.h:32, from src/mongo/db/query/planner_access.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/query/query_planner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/query_planner.cpp g++ -o build/opt/mongo/db/query/canonical_query_encoder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/canonical_query_encoder.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/planner_access.h:32, from src/mongo/db/query/planner_access.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/planner_access.h:32, from src/mongo/db/query/planner_access.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/query/planner_access.cpp:43: 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:85:25: warning: redundant move in return statement [-Wredundant-move] 85 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:85: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:140:25: warning: redundant move in return statement [-Wredundant-move] 140 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:140: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:177:25: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:177:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/query/index_bounds_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/index_bounds_builder.cpp 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:260:21: warning: redundant move in return statement [-Wredundant-move] 260 | return std::move(csn); | ~~~~~~~~~^~~~~ src/mongo/db/query/planner_access.cpp:260: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:294:29: warning: redundant move in return statement [-Wredundant-move] 294 | return std::move(ret); | ~~~~~~~~~^~~~~ src/mongo/db/query/planner_access.cpp:294:29: note: remove 'std::move' call src/mongo/db/query/planner_access.cpp:302:29: warning: redundant move in return statement [-Wredundant-move] 302 | return std::move(ret); | ~~~~~~~~~^~~~~ src/mongo/db/query/planner_access.cpp:302:29: note: remove 'std::move' call src/mongo/db/query/planner_access.cpp:321:25: warning: redundant move in return statement [-Wredundant-move] 321 | return std::move(ret); | ~~~~~~~~~^~~~~ src/mongo/db/query/planner_access.cpp:321:25: note: remove 'std::move' call src/mongo/db/query/planner_access.cpp:342:25: warning: redundant move in return statement [-Wredundant-move] 342 | return std::move(isn); | ~~~~~~~~~^~~~~ src/mongo/db/query/planner_access.cpp:342: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:1141:25: warning: redundant move in return statement [-Wredundant-move] 1141 | return std::move(fetch); | ~~~~~~~~~^~~~~~~ src/mongo/db/query/planner_access.cpp:1141: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:1308:33: warning: redundant move in return statement [-Wredundant-move] 1308 | return std::move(fetch); | ~~~~~~~~~^~~~~~~ src/mongo/db/query/planner_access.cpp:1308:33: note: remove 'std::move' call src/mongo/db/query/planner_access.cpp:1332:29: warning: redundant move in return statement [-Wredundant-move] 1332 | return std::move(fetch); | ~~~~~~~~~^~~~~~~ src/mongo/db/query/planner_access.cpp:1332:29: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/query_planner.h:33, from src/mongo/db/query/query_planner.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/query_planner.h:33, from src/mongo/db/query/query_planner.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/canonical_query_encoder.h:32, from src/mongo/db/query/canonical_query_encoder.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/canonical_query_encoder.h:32, from src/mongo/db/query/canonical_query_encoder.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/canonical_query_encoder.h:32, from src/mongo/db/query/canonical_query_encoder.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/query_planner.h:33, from src/mongo/db/query/query_planner.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/query_planner.h:33, from src/mongo/db/query/query_planner.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/index_bounds_builder.h:34, from src/mongo/db/query/index_bounds_builder.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/canonical_query_encoder.h:32, from src/mongo/db/query/canonical_query_encoder.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/canonical_query_encoder.h:32, from src/mongo/db/query/canonical_query_encoder.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/index_bounds_builder.h:34, from src/mongo/db/query/index_bounds_builder.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:34, from src/mongo/db/query/index_bounds_builder.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/index_bounds_builder.h:34, from src/mongo/db/query/index_bounds_builder.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/planner_access.h:32, from src/mongo/db/query/planner_access.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/query/canonical_query_encoder.cpp:39: src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:85:25: warning: redundant move in return statement [-Wredundant-move] 85 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:85: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:140:25: warning: redundant move in return statement [-Wredundant-move] 140 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:140: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:177:25: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:177:25: note: remove 'std::move' call In file included from src/mongo/db/query/planner_ixselect.h:32, from src/mongo/db/query/query_planner.cpp:54: 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:85:25: warning: redundant move in return statement [-Wredundant-move] 85 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:85: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:140:25: warning: redundant move in return statement [-Wredundant-move] 140 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:140: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:177:25: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:177:25: note: remove 'std::move' call In file included from src/mongo/db/query/planner_ixselect.h:32, from src/mongo/db/query/index_bounds_builder.cpp:50: 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:85:25: warning: redundant move in return statement [-Wredundant-move] 85 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:85: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:140:25: warning: redundant move in return statement [-Wredundant-move] 140 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:140: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:177:25: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:177:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/query/planner_analysis.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/planner_analysis.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/canonical_query_encoder.h:32, from src/mongo/db/query/canonical_query_encoder.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/query_planner.h:33, from src/mongo/db/query/query_planner.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/index_bounds_builder.h:34, from src/mongo/db/query/index_bounds_builder.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/query/interval.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/interval.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/planner_analysis.h:32, from src/mongo/db/query/planner_analysis.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/planner_analysis.h:32, from src/mongo/db/query/planner_analysis.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/planner_analysis.h:32, from src/mongo/db/query/planner_analysis.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/planner_analysis.h:32, from src/mongo/db/query/planner_analysis.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/query/canonical_query.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/canonical_query.cpp g++ -o build/opt/mongo/db/query/query_solution.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/query_solution.cpp g++ -o build/opt/mongo/db/storage/kv/temporary_kv_record_store.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/kv/temporary_kv_record_store.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/canonical_query.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/canonical_query.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/canonical_query.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/canonical_query.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/query_solution.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/query_solution.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/query/canonical_query.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:85:25: warning: redundant move in return statement [-Wredundant-move] 85 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:85: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:140:25: warning: redundant move in return statement [-Wredundant-move] 140 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:140: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:177:25: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:177:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/profile_filter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/profile_filter.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/query_solution.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call 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, const mongo::ProjectionPolicies&)': src/mongo/db/query/canonical_query.cpp:183:21: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(cq); | ~~~~~~~~~^~~~ src/mongo/db/query/canonical_query.cpp:183: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 In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/query_solution.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/dbcheck_idl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/dbcheck_idl.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/canonical_query.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/query/query_solution.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: required from 'struct boost::CopyConstructible<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:125:16: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: [ skipping 3 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'boost::range_detail::transformed_range boost::range_detail::operator|(const SinglePassRange&, const boost::range_detail::transform_holder&) [with SinglePassRange = std::vector; UnaryFunction = mongo::ReturnKeyNode::appendToString(mongo::str::stream*, int) const::]' src/mongo/db/query/query_solution.cpp:978:99: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/query/query_solution.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::CopyConstructible<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/query/query_solution.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:114:7: [ skipping 7 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'boost::range_detail::transformed_range boost::range_detail::operator|(const SinglePassRange&, const boost::range_detail::transform_holder&) [with SinglePassRange = std::vector; UnaryFunction = mongo::ReturnKeyNode::appendToString(mongo::str::stream*, int) const::]' src/mongo/db/query/query_solution.cpp:978:99: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/query/query_solution.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/query/query_solution.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:114:7: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'boost::range_detail::transformed_range boost::range_detail::operator|(const SinglePassRange&, const boost::range_detail::transform_holder&) [with SinglePassRange = std::vector; UnaryFunction = mongo::ReturnKeyNode::appendToString(mongo::str::stream*, int) const::]' src/mongo/db/query/query_solution.cpp:978:99: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/query/query_solution.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::incrementable_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/query/query_solution.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:136:13: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'boost::range_detail::transformed_range boost::range_detail::operator|(const SinglePassRange&, const boost::range_detail::transform_holder&) [with SinglePassRange = std::vector; UnaryFunction = mongo::ReturnKeyNode::appendToString(mongo::str::stream*, int) const::]' src/mongo/db/query/query_solution.cpp:978:99: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/query/query_solution.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/query/query_solution.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: required from 'struct boost::EqualityComparable<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'boost::range_detail::transformed_range boost::range_detail::operator|(const SinglePassRange&, const boost::range_detail::transform_holder&) [with SinglePassRange = std::vector; UnaryFunction = mongo::ReturnKeyNode::appendToString(mongo::str::stream*, int) const::]' src/mongo/db/query/query_solution.cpp:978:99: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/query/query_solution.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::EqualityComparable<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/query/query_solution.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/range/concepts.hpp:152:13: [ skipping 6 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'boost::range_detail::transformed_range boost::range_detail::operator|(const SinglePassRange&, const boost::range_detail::transform_holder&) [with SinglePassRange = std::vector; UnaryFunction = mongo::ReturnKeyNode::appendToString(mongo::str::stream*, int) const::]' src/mongo/db/query/query_solution.cpp:978:99: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/query/query_solution.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/query/query_solution.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:152:13: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'boost::range_detail::transformed_range boost::range_detail::operator|(const SinglePassRange&, const boost::range_detail::transform_holder&) [with SinglePassRange = std::vector; UnaryFunction = mongo::ReturnKeyNode::appendToString(mongo::str::stream*, int) const::]' src/mongo/db/query/query_solution.cpp:978:99: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/query/query_solution.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::single_pass_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/query/query_solution.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'boost::range_detail::transformed_range boost::range_detail::operator|(const SinglePassRange&, const boost::range_detail::transform_holder&) [with SinglePassRange = std::vector; UnaryFunction = mongo::ReturnKeyNode::appendToString(mongo::str::stream*, int) const::]' src/mongo/db/query/query_solution.cpp:978:99: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/query/query_solution.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/query/query_solution.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:278:9: required from 'struct boost::SinglePassRangeConcept >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'boost::range_detail::transformed_range boost::range_detail::operator|(const SinglePassRange&, const boost::range_detail::transform_holder&) [with SinglePassRange = std::vector; UnaryFunction = mongo::ReturnKeyNode::appendToString(mongo::str::stream*, int) const::]' src/mongo/db/query/query_solution.cpp:978:99: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/query/query_solution.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::range_detail::SinglePassIteratorConcept::~SinglePassIteratorConcept() [with Iterator = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 158 | BOOST_CONCEPT_USAGE(SinglePassIteratorConcept) | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/query/query_solution.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: required from 'struct boost::SinglePassRangeConcept >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'boost::range_detail::transformed_range boost::range_detail::operator|(const SinglePassRange&, const boost::range_detail::transform_holder&) [with SinglePassRange = std::vector; UnaryFunction = mongo::ReturnKeyNode::appendToString(mongo::str::stream*, int) const::]' src/mongo/db/query/query_solution.cpp:978:99: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/query/query_solution.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::SinglePassRangeConcept >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/query/query_solution.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::SinglePassRangeConcept >]': src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'boost::range_detail::transformed_range boost::range_detail::operator|(const SinglePassRange&, const boost::range_detail::transform_holder&) [with SinglePassRange = std::vector; UnaryFunction = mongo::ReturnKeyNode::appendToString(mongo::str::stream*, int) const::]' src/mongo/db/query/query_solution.cpp:978:99: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/query/query_solution.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::SinglePassRangeConcept::~SinglePassRangeConcept() [with T = const std::vector]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 284 | BOOST_CONCEPT_USAGE(SinglePassRangeConcept) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::CopyConstructible<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: required from 'struct boost::CopyConstructible<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:125:16: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: [ skipping 4 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'boost::range_detail::transformed_range boost::range_detail::operator|(const SinglePassRange&, const boost::range_detail::transform_holder&) [with SinglePassRange = std::vector; UnaryFunction = mongo::ReturnKeyNode::appendToString(mongo::str::stream*, int) const::]' src/mongo/db/query/query_solution.cpp:978:99: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::CopyConstructible::~CopyConstructible() [with TT = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 167 | BOOST_CONCEPT_USAGE(CopyConstructible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 8 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'boost::range_detail::transformed_range boost::range_detail::operator|(const SinglePassRange&, const boost::range_detail::transform_holder&) [with SinglePassRange = std::vector; UnaryFunction = mongo::ReturnKeyNode::appendToString(mongo::str::stream*, int) const::]' src/mongo/db/query/query_solution.cpp:978:99: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::incrementable_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/range/concepts.hpp:136:13: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: [ skipping 3 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'boost::range_detail::transformed_range boost::range_detail::operator|(const SinglePassRange&, const boost::range_detail::transform_holder&) [with SinglePassRange = std::vector; UnaryFunction = mongo::ReturnKeyNode::appendToString(mongo::str::stream*, int) const::]' src/mongo/db/query/query_solution.cpp:978:99: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::range_detail::IncrementableIteratorConcept::~IncrementableIteratorConcept() [with Iterator = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:136:13: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 136 | BOOST_CONCEPT_USAGE(IncrementableIteratorConcept) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::EqualityComparable<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: required from 'struct boost::EqualityComparable<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: [ skipping 3 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'boost::range_detail::transformed_range boost::range_detail::operator|(const SinglePassRange&, const boost::range_detail::transform_holder&) [with SinglePassRange = std::vector; UnaryFunction = mongo::ReturnKeyNode::appendToString(mongo::str::stream*, int) const::]' src/mongo/db/query/query_solution.cpp:978:99: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::EqualityComparable::~EqualityComparable() [with TT = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 233 | BOOST_CONCEPT_USAGE(EqualityComparable) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 7 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'boost::range_detail::transformed_range boost::range_detail::operator|(const SinglePassRange&, const boost::range_detail::transform_holder&) [with SinglePassRange = std::vector; UnaryFunction = mongo::ReturnKeyNode::appendToString(mongo::str::stream*, int) const::]' src/mongo/db/query/query_solution.cpp:978:99: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::single_pass_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'boost::range_detail::transformed_range boost::range_detail::operator|(const SinglePassRange&, const boost::range_detail::transform_holder&) [with SinglePassRange = std::vector; UnaryFunction = mongo::ReturnKeyNode::appendToString(mongo::str::stream*, int) const::]' src/mongo/db/query/query_solution.cpp:978:99: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::range_detail::SinglePassIteratorConcept::~SinglePassIteratorConcept() [with Iterator = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 158 | BOOST_CONCEPT_USAGE(SinglePassIteratorConcept) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::SinglePassRangeConcept >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > >]' src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: required from 'struct boost::SinglePassRangeConcept >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'boost::range_detail::transformed_range boost::range_detail::operator|(const SinglePassRange&, const boost::range_detail::transform_holder&) [with SinglePassRange = std::vector; UnaryFunction = mongo::ReturnKeyNode::appendToString(mongo::str::stream*, int) const::]' src/mongo/db/query/query_solution.cpp:978:99: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::SinglePassRangeConcept::~SinglePassRangeConcept() [with T = const std::vector]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 284 | BOOST_CONCEPT_USAGE(SinglePassRangeConcept) | ^~~~~~~~~~~~~~~~~~~ gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_u7.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_u7.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/mi/init.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/mi/init.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/commands/set_feature_compatibility_version_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/set_feature_compatibility_version_command.cpp gcc -o build/opt/third_party/wiredtiger/src/cursor/cur_metadata.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/cursor/cur_metadata.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/query_solution.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/concurrency/d_concurrency.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/concurrency/d_concurrency.cpp g++ -o build/opt/mongo/db/repl/check_quorum_for_config_change.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/check_quorum_for_config_change.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/concurrency/d_concurrency.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/concurrency/d_concurrency.cpp:40: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/collection_catalog_helper.h:32, from src/mongo/db/commands/set_feature_compatibility_version_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: 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/canonical_query_encoder.o build/opt/mongo/db/query/index_tag.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_wildcard_helpers.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/expression_index.o build/opt/mongo/db/query/index_bounds.o build/opt/mongo/db/query/index_bounds_builder.o build/opt/mongo/db/query/index_entry.o build/opt/mongo/db/query/interval.o build/opt/mongo/db/query/query_planner_common.o build/opt/mongo/db/query/query_settings.o build/opt/mongo/db/query/query_solution.o build/opt/mongo/db/query/expression_index_knobs_gen.o In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/collection_catalog_helper.h:32, from src/mongo/db/commands/set_feature_compatibility_version_command.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/query/libquery_planner.a g++ -o build/opt/mongo/db/repl/repl_set_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_command.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/concurrency/d_concurrency.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/collection_catalog_helper.h:32, from src/mongo/db/commands/set_feature_compatibility_version_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/concurrency/d_concurrency.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/collection_catalog_helper.h:32, from src/mongo/db/commands/set_feature_compatibility_version_command.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:34, from src/mongo/db/repl/repl_set_command.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:34, from src/mongo/db/repl/repl_set_command.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/sessions_collection_sharded.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/sessions_collection_sharded.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:34, from src/mongo/db/repl/repl_set_command.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:34, from src/mongo/db/repl/repl_set_command.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call Generating build/opt/mongo/watchdog/watchdog_mongod_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/s/sessions_collection_sharded.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call g++ -o build/opt/mongo/watchdog/watchdog_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/watchdog/watchdog_mongod.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:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/s/sessions_collection_sharded.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/s/sessions_collection_sharded.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/s/sessions_collection_sharded.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/watchdog/watchdog_mongod.cpp:42: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call gcc -o build/opt/third_party/timelib-2021.06/interval.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/timelib-2021.06 src/third_party/timelib-2021.06/interval.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/commands/plan_cache_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/plan_cache_commands.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/watchdog/watchdog_mongod.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call gcc -o build/opt/third_party/icu4c-57.1/source/common/ubidiwrt.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ubidiwrt.c src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/watchdog/watchdog_mongod.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/update/pipeline_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/pipeline_executor.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:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/watchdog/watchdog_mongod.cpp:42: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/commands/plan_cache_commands.h:34, from src/mongo/db/commands/plan_cache_commands.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/commands/plan_cache_commands.h:34, from src/mongo/db/commands/plan_cache_commands.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/update/pipeline_executor.h:38, from src/mongo/db/update/pipeline_executor.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/commands/plan_cache_commands.h:34, from src/mongo/db/commands/plan_cache_commands.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/update/pipeline_executor.h:38, from src/mongo/db/update/pipeline_executor.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/commands/plan_cache_commands.h:34, from src/mongo/db/commands/plan_cache_commands.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/update/pipeline_executor.h:38, from src/mongo/db/update/pipeline_executor.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/update/pipeline_executor.h:38, from src/mongo/db/update/pipeline_executor.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/config/sharding_catalog_manager_shard_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/schema/schema_create.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/schema/schema_create.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/exec/and_sorted.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/and_sorted.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /usr/bin/python3 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 In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/config/sharding_catalog_manager_shard_operations.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp:47: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/config/sharding_catalog_manager_shard_operations.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call g++ -o build/opt/mongo/util/icu_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/util/icu_init.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:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp:47: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/exec/and_sorted.h:35, from src/mongo/db/exec/and_sorted.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/logv2/log_tag.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logv2/log_tag.cpp g++ -o build/opt/mongo/rpc/reply_builder_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/reply_builder_interface.cpp ar rcsTD build/opt/mongo/db/s/libsharding_logging.a build/opt/mongo/db/s/sharding_logging.o Skipping ranlib for thin archive build/opt/mongo/db/s/libsharding_logging.a g++ -o build/opt/mongo/db/s/balancer/balancer_chunk_selection_policy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/balancer/balancer_chunk_selection_policy.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/fsync_locked.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/fsync_locked.cpp gcc -o build/opt/third_party/wiredtiger/src/txn/txn_log.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/txn/txn_log.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/repl/election_reason_counter_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/repl/election_reason_counter_gen.cpp 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 gcc -o build/opt/third_party/wiredtiger/src/support/stat.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/stat.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C Generating build/opt/mongo/db/cloner_gen.cpp g++ -o build/opt/mongo/db/cloner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/cloner.cpp g++ -o build/opt/mongo/db/pipeline/process_interface/mongos_process_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/process_interface/mongos_process_interface.cpp Generating build/opt/mongo/db/commands/rename_collection_gen.cpp g++ -o build/opt/mongo/db/commands/rename_collection_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands/rename_collection_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/election_reason_counter_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/election_reason_counter_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/election_reason_counter_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/election_reason_counter_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/cloner.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/rename_collection_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/cloner.cpp:44: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/mongos_process_interface.h:33, from src/mongo/db/pipeline/process_interface/mongos_process_interface.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/db/pipeline/process_interface/mongos_process_interface.h:33, from src/mongo/db/pipeline/process_interface/mongos_process_interface.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/db/pipeline/process_interface/mongos_process_interface.h:33, from src/mongo/db/pipeline/process_interface/mongos_process_interface.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/rename_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/cloner.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/cloner.cpp:44: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/mongos_process_interface.h:33, from src/mongo/db/pipeline/process_interface/mongos_process_interface.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/rename_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/rename_collection_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/unorm.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unorm.cpp g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_parameters.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_parameters.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/oplog_buffer_blocking_queue.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/oplog_buffer_blocking_queue.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/mongos_process_interface.h:33, from src/mongo/db/pipeline/process_interface/mongos_process_interface.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/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 ar rcsTD build/opt/mongo/db/commands/librename_collection_idl.a build/opt/mongo/db/commands/rename_collection_gen.o Skipping ranlib for thin archive build/opt/mongo/db/commands/librename_collection_idl.a g++ -o build/opt/mongo/db/s/sharded_connection_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/sharded_connection_info.cpp g++ -o build/opt/mongo/bson/json.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/json.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/filesystem/src/unique_path.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/filesystem/src/unique_path.cpp ar rcsTD build/opt/mongo/db/pipeline/process_interface/libmongos_process_interface.a build/opt/mongo/db/pipeline/process_interface/mongos_process_interface.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/process_interface/libmongos_process_interface.a gcc -o build/opt/third_party/wiredtiger/src/reconcile/rec_col.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/reconcile/rec_col.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/wire_version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/wire_version.cpp gcc -o build/opt/third_party/wiredtiger/src/schema/schema_rename.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/schema/schema_rename.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C /usr/bin/python3 src/mongo/db/fts/unicode/gen_casefold_map.py src/third_party/unicode-8.0.0/CaseFolding.txt build/opt/mongo/db/fts/unicode/codepoints_casefold.cpp g++ -o build/opt/mongo/db/fts/unicode/codepoints_casefold.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/fts/unicode/codepoints_casefold.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/thread/src/future.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_THREAD_BUILD_LIB -DBOOST_THREAD_PTHREAD -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/thread/src/future.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/thread/src/pthread/thread.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_THREAD_BUILD_LIB -DBOOST_THREAD_PTHREAD -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp gcc -o build/opt/third_party/icu4c-57.1/source/common/propsvec.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/propsvec.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/icu4c-57.1/source/common/ustr_cnv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustr_cnv.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 g++ -o build/opt/mongo/db/transaction_validation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/transaction_validation.cpp g++ -o build/opt/mongo/executor/network_interface_factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/executor/network_interface_factory.cpp g++ -o build/opt/mongo/db/unclean_shutdown.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/unclean_shutdown.cpp In file included from src/third_party/boost-1.70.0/boost/thread/thread_only.hpp:17, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:11: src/third_party/boost-1.70.0/boost/thread/pthread/thread_data.hpp: In member function 'void boost::thread_attributes::set_stack_size(std::size_t)': src/third_party/boost-1.70.0/boost/thread/pthread/thread_data.hpp:61:19: warning: comparison of integer expressions of different signedness: 'std::size_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare] 61 | if (size::failed() [with Model = boost::algorithm::FinderConcept >, __gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:77:13: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:537:29: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:47:52: warning: 'this' pointer is null [-Wnonnull] 47 | static void failed() { ((Model*)0)->constraints(); } | ~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:26, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:34: src/third_party/boost-1.70.0/boost/algorithm/string/concept.hpp:40:18: note: in a call to non-static member function 'void boost::algorithm::FinderConcept::constraints() [with FinderT = boost::algorithm::detail::token_finderF >; IteratorT = __gnu_cxx::__normal_iterator >]' 40 | void constraints() | ^~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: required from 'struct boost::CopyConstructible<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:125:16: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: [ skipping 14 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:537:29: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::CopyConstructible<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:114:7: [ skipping 18 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:537:29: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:114:7: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 13 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:537:29: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::incrementable_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:136:13: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 13 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:537:29: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: required from 'struct boost::EqualityComparable<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 13 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:537:29: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::EqualityComparable<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/range/concepts.hpp:152:13: [ skipping 17 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:537:29: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:152:13: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ > >)>' src/third_party/boost-1.70.0/boost/range/concepts.hpp:278:9: [ skipping 12 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:537:29: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::single_pass_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ > >)>' src/third_party/boost-1.70.0/boost/range/concepts.hpp:278:9: [ skipping 12 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:537:29: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:278:9: required from 'struct boost::SinglePassRangeConcept > > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept > > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ > > >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: [ skipping 7 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:537:29: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::range_detail::SinglePassIteratorConcept::~SinglePassIteratorConcept() [with Iterator = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 158 | BOOST_CONCEPT_USAGE(SinglePassIteratorConcept) | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: required from 'struct boost::SinglePassRangeConcept > > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept > > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ > > >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: [ skipping 7 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:537:29: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::SinglePassRangeConcept > > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::SinglePassRangeConcept > > >]': src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range<__gnu_cxx::__normal_iterator > >; SinglePassRange2 = boost::iterator_range<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = __gnu_cxx::__normal_iterator >; Iterator2T = __gnu_cxx::__normal_iterator >]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = __gnu_cxx::__normal_iterator >]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; Facade2 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:900:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator==(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; V1 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; V2 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/third_party/boost-1.70.0/boost/iterator/iterator_adaptor.hpp:305:29: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:537:29: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:34: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::SinglePassRangeConcept::~SinglePassRangeConcept() [with T = const boost::iterator_range<__gnu_cxx::__normal_iterator > >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 284 | BOOST_CONCEPT_USAGE(SinglePassRangeConcept) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::CopyConstructible<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: required from 'struct boost::CopyConstructible<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:125:16: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: [ skipping 15 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:537:29: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::CopyConstructible::~CopyConstructible() [with TT = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 167 | BOOST_CONCEPT_USAGE(CopyConstructible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 19 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:537:29: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::incrementable_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/range/concepts.hpp:136:13: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: [ skipping 14 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:537:29: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::range_detail::IncrementableIteratorConcept::~IncrementableIteratorConcept() [with Iterator = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:136:13: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 136 | BOOST_CONCEPT_USAGE(IncrementableIteratorConcept) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::EqualityComparable<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: required from 'struct boost::EqualityComparable<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: [ skipping 14 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:537:29: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::EqualityComparable::~EqualityComparable() [with TT = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 233 | BOOST_CONCEPT_USAGE(EqualityComparable) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 18 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:537:29: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::single_pass_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 13 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:537:29: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::range_detail::SinglePassIteratorConcept::~SinglePassIteratorConcept() [with Iterator = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 158 | BOOST_CONCEPT_USAGE(SinglePassIteratorConcept) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::SinglePassRangeConcept > > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > > >]' src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: required from 'struct boost::SinglePassRangeConcept > > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept > > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 8 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/third_party/boost-1.70.0/libs/thread/src/pthread/thread.cpp:537:29: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::SinglePassRangeConcept::~SinglePassRangeConcept() [with T = const boost::iterator_range<__gnu_cxx::__normal_iterator > >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 284 | BOOST_CONCEPT_USAGE(SinglePassRangeConcept) | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/transaction_validation.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_err.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_err.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/lsm/lsm_work_unit.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/lsm/lsm_work_unit.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/transaction_validation.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call Generating build/opt/mongo/s/client/shard_remote_gen.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/transaction_validation.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call ar rcsTD build/opt/third_party/boost-1.70.0/libboost_thread.a build/opt/third_party/boost-1.70.0/libs/thread/src/future.o build/opt/third_party/boost-1.70.0/libs/thread/src/pthread/once.o build/opt/third_party/boost-1.70.0/libs/thread/src/pthread/thread.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:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/third_party/boost-1.70.0/libboost_thread.a In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/transaction_validation.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/client/shard_remote_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/client/shard_remote_gen.cpp 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 g++ -o build/opt/mongo/base/validate_locale.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/validate_locale.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/appendable.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/appendable.cpp g++ -o build/opt/mongo/db/query/query_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/query_request.cpp g++ -o build/opt/mongo/db/query/tailable_mode.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/tailable_mode.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/client/shard_remote_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/client/shard_remote_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/query/query_request.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/client/shard_remote_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/query/tailable_mode_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/query/tailable_mode_gen.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:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/client/shard_remote_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/query/query_request.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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:451:21: warning: redundant move in return statement [-Wredundant-move] 451 | return std::move(qr); | ~~~~~~~~~^~~~ src/mongo/db/query/query_request.cpp:451: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:783:21: warning: redundant move in return statement [-Wredundant-move] 783 | return std::move(qr); | ~~~~~~~~~^~~~ src/mongo/db/query/query_request.cpp:783:21: note: remove 'std::move' call src/mongo/db/query/query_request.cpp: In static member function 'static mongo::StatusWith > mongo::QueryRequest::fromLegacyQuery(mongo::NamespaceStringOrUUID, const mongo::BSONObj&, const mongo::BSONObj&, int, int, int)': src/mongo/db/query/query_request.cpp:799:21: warning: redundant move in return statement [-Wredundant-move] 799 | return std::move(qr); | ~~~~~~~~~^~~~ src/mongo/db/query/query_request.cpp:799:21: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/tailable_mode_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libshared_request_handling.a build/opt/mongo/db/transaction_validation.o Skipping ranlib for thin archive build/opt/mongo/db/libshared_request_handling.a g++ -o build/opt/mongo/db/keys_collection_client_sharded.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/keys_collection_client_sharded.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_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::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/util/net/hostandport.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/hostandport.cpp 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 g++ -o build/opt/mongo/db/query/collection_query_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/collection_query_info.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/util/net/ssl_parameters_gen.cpp g++ -o build/opt/mongo/util/net/ssl_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/ssl_manager.cpp g++ -o build/opt/mongo/db/commands/txn_cmds_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands/txn_cmds_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/query/collection_query_info.h:34, from src/mongo/db/query/collection_query_info.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/query/collection_query_info.h:34, from src/mongo/db/query/collection_query_info.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/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 g++ -o build/opt/mongo/db/exec/update_stage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/update_stage.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/query/collection_query_info.h:34, from src/mongo/db/query/collection_query_info.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/query/collection_query_info.h:34, from src/mongo/db/query/collection_query_info.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/txn_cmds_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/txn_cmds_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/net/ssl_manager.cpp:44: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/txn_cmds_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/txn_cmds_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/query/planner_ixselect.h:32, from src/mongo/db/query/collection_query_info.cpp:49: 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:85:25: warning: redundant move in return statement [-Wredundant-move] 85 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:85: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:140:25: warning: redundant move in return statement [-Wredundant-move] 140 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:140: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:177:25: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:177:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/net/ssl_manager.cpp:44: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/net/ssl_manager.cpp:44: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/net/ssl_manager.cpp:44: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/update_stage.h:33, from src/mongo/db/exec/update_stage.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/update_stage.h:33, from src/mongo/db/exec/update_stage.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/update_stage.h:33, from src/mongo/db/exec/update_stage.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/update_stage.h:33, from src/mongo/db/exec/update_stage.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/util/net/ssl_manager.cpp: In function 'mongo::StatusWith > > mongo::parseTLSFeature(mongo::ConstDataRange)': src/mongo/util/net/ssl_manager.cpp:1101:21: warning: redundant move in return statement [-Wredundant-move] 1101 | return std::move(features); | ~~~~~~~~~^~~~~~~~~~ src/mongo/util/net/ssl_manager.cpp:1101:21: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/query/collection_query_info.h:34, from src/mongo/db/query/collection_query_info.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/net/ssl_manager.cpp:44: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/commands/libtxn_cmd_request.a build/opt/mongo/db/commands/txn_cmds_gen.o build/opt/mongo/db/commands/txn_two_phase_commit_cmds_gen.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libtxn_cmd_request.a gcc -o build/opt/third_party/wiredtiger/src/btree/bt_cursor.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_cursor.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/base/initializer_dependency_graph.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/initializer_dependency_graph.cpp g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_begin_transaction_block.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_begin_transaction_block.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/reconcile/rec_visibility.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/reconcile/rec_visibility.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/s/query/store_possible_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/query/store_possible_cursor.cpp g++ -o build/opt/mongo/db/index/skipped_record_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index/skipped_record_tracker.cpp gcc -o build/opt/third_party/wiredtiger/src/block/block_slvg.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/block/block_slvg.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/util/intrusive_counter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/intrusive_counter.cpp g++ -o build/opt/mongo/db/query/projection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/projection.cpp g++ -o build/opt/mongo/s/client/parallel.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/client/parallel.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/index/skipped_record_tracker.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from build/opt/mongo/s/query/async_results_merger_params_gen.h:24, from src/mongo/s/query/owned_remote_cursor.h:34, from src/mongo/s/query/store_possible_cursor.h:37, from src/mongo/s/query/store_possible_cursor.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/index/skipped_record_tracker.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from build/opt/mongo/s/query/async_results_merger_params_gen.h:24, from src/mongo/s/query/owned_remote_cursor.h:34, from src/mongo/s/query/store_possible_cursor.h:37, from src/mongo/s/query/store_possible_cursor.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/index/skipped_record_tracker.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from build/opt/mongo/s/query/async_results_merger_params_gen.h:24, from src/mongo/s/query/owned_remote_cursor.h:34, from src/mongo/s/query/store_possible_cursor.h:37, from src/mongo/s/query/store_possible_cursor.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/index/skipped_record_tracker.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from build/opt/mongo/s/query/async_results_merger_params_gen.h:24, from src/mongo/s/query/owned_remote_cursor.h:34, from src/mongo/s/query/store_possible_cursor.h:37, from src/mongo/s/query/store_possible_cursor.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/projection.cpp:30: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/projection.cpp:30: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/projection.cpp:30: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/projection.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/projection.cpp:30: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/catalog/libcollection_query_info.a build/opt/mongo/db/query/collection_query_info.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libcollection_query_info.a g++ -o build/opt/mongo/db/pipeline/expression_context.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/expression_context.cpp Generating build/opt/mongo/executor/task_executor_pool_parameters_gen.cpp g++ -o build/opt/mongo/executor/task_executor_pool_parameters_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/executor/task_executor_pool_parameters_gen.cpp g++ -o build/opt/mongo/db/repl/rollback_checker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/rollback_checker.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/expression_context.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/index/libskipped_record_tracker.a build/opt/mongo/db/index/skipped_record_tracker.o Skipping ranlib for thin archive build/opt/mongo/db/index/libskipped_record_tracker.a gcc -o build/opt/third_party/unwind/dist/src/dwarf/Lfind_proc_info-lsb.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/dwarf/Lfind_proc_info-lsb.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/s/config/sharding_catalog_manager_zone_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/sharding_catalog_manager_zone_operations.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/stub_mongo_process_interface.h:32, from src/mongo/db/pipeline/expression_context.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/db/pipeline/process_interface/stub_mongo_process_interface.h:32, from src/mongo/db/pipeline/expression_context.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/db/pipeline/process_interface/stub_mongo_process_interface.h:32, from src/mongo/db/pipeline/expression_context.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/executor/task_executor_pool_parameters_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/executor/task_executor_pool_parameters_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/executor/task_executor_pool_parameters_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/executor/task_executor_pool_parameters_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/config/sharding_catalog_manager_collection_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/config/sharding_catalog_manager_database_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/sharding_catalog_manager_database_operations.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp:49: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp:49: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/config/sharding_catalog_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/sharding_catalog_manager.cpp g++ -o build/opt/mongo/db/s/config/sharding_catalog_manager_chunk_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:35, from src/mongo/db/s/config/sharding_catalog_manager_database_operations.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:35, from src/mongo/db/s/config/sharding_catalog_manager_database_operations.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:35, from src/mongo/db/s/config/sharding_catalog_manager_database_operations.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:35, from src/mongo/db/s/config/sharding_catalog_manager_database_operations.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp:41: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/config/namespace_serializer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/namespace_serializer.cpp g++ -o build/opt/mongo/db/s/add_shard_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/add_shard_util.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/config/initial_split_policy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/initial_split_policy.cpp g++ -o build/opt/mongo/scripting/mozjs/uri.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/uri.cpp g++ -o build/opt/mongo/db/repl/database_cloner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/database_cloner.cpp g++ -o build/opt/mongo/db/s/chunk_splitter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/chunk_splitter.cpp src/mongo/scripting/mozjs/uri.cpp: In static member function 'static void mongo::mozjs::URIInfo::construct(JSContext*, JS::CallArgs)': src/mongo/scripting/mozjs/uri.cpp:74:21: warning: loop variable 'hp' creates a copy from type 'const mongo::HostAndPort' [-Wrange-loop-construct] 74 | for (const auto hp : parsed.getServers()) { | ^~ src/mongo/scripting/mozjs/uri.cpp:74:21: note: use reference type to prevent copying 74 | for (const auto hp : parsed.getServers()) { | ^~ | & In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/base_cloner.h:39, from src/mongo/db/repl/database_cloner.h:34, from src/mongo/db/repl/database_cloner.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/base_cloner.h:39, from src/mongo/db/repl/database_cloner.h:34, from src/mongo/db/repl/database_cloner.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/s/libsharding_catalog_manager.a build/opt/mongo/db/s/add_shard_util.o 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 g++ -o build/opt/mongo/db/pipeline/process_interface/mongod_process_interface_factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/process_interface/mongod_process_interface_factory.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/base_cloner.h:39, from src/mongo/db/repl/database_cloner.h:34, from src/mongo/db/repl/database_cloner.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/base_cloner.h:39, from src/mongo/db/repl/database_cloner.h:34, from src/mongo/db/repl/database_cloner.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call Generating build/opt/mongo/db/catalog/health_log_gen.cpp Generating build/opt/mongo/db/repl/dbcheck_gen.cpp g++ -o build/opt/mongo/db/repl/dbcheck.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/dbcheck.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/replica_set_node_process_interface.h:33, from src/mongo/db/pipeline/process_interface/mongod_process_interface_factory.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/db/pipeline/process_interface/replica_set_node_process_interface.h:33, from src/mongo/db/pipeline/process_interface/mongod_process_interface_factory.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/db/pipeline/process_interface/replica_set_node_process_interface.h:33, from src/mongo/db/pipeline/process_interface/mongod_process_interface_factory.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/replica_set_node_process_interface.h:33, from src/mongo/db/pipeline/process_interface/mongod_process_interface_factory.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/config/config_api.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/config/config_api.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/multi_key_path_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/multi_key_path_tracker.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/repl/dbcheck.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/repl/dbcheck.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/repl/dbcheck.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/repl/dbcheck.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_acosh.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/e_acosh.cpp Generating build/opt/mongo/util/testing_options_gen.cpp g++ -o build/opt/mongo/util/testing_options_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/util/testing_options_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/replica_set_node_process_interface.h:33, from src/mongo/db/pipeline/process_interface/mongod_process_interface_factory.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/conn_pool_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/conn_pool_stats.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/util/testing_options_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/testing_options_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/pipeline/process_interface/libmongod_process_interface_factory.a build/opt/mongo/db/pipeline/process_interface/mongod_process_interface_factory.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:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/pipeline/process_interface/libmongod_process_interface_factory.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:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/ucol_swp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucol_swp.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:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_stats.cpp:41: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/testing_options_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/testing_options_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_stats.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_stats.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_stats.cpp:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/db/repl/rollback_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/rollback_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/repl/rollback_gen.cpp In file included from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:167, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:183, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:167, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:183, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:167, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:183, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:167, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:183, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:167, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:183, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:167, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:183, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:167, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:183, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:167, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:183, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:167, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/frontend/ErrorReporter.h:14, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:177, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:167, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gc::TenureCountCache]': src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:159:42: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gc::TenureCountCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/Allocator.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:11: src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:152:8: note: 'struct js::gc::TenureCountCache' declared here 152 | struct TenureCountCache | ^~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:167, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/CompileInfo.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitCompartment.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Allocator.cpp:12, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:11: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/frontend/ErrorReporter.h:14, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:177, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap >::MapHashPolicy; AllocPolicy = js::TempAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = js::frontend::UsedNameTracker::UsedNameInfo; HashPolicy = js::DefaultHasher; AllocPolicy = js::TempAllocPolicy]' src/third_party/mozjs-60/extract/js/src/frontend/ParseContext.h:167:19: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap >::MapHashPolicy, js::TempAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap >::MapHashPolicy, js::TempAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = JS::Zone* const; HashPolicy = js::HashSet, js::SystemAllocPolicy>::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = JS::Zone*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/GC.cpp:4979:40: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/GC.cpp:8113:37: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::AtomStateEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:1690:9: required from 'void js::detail::HashTable::clearAndShrink() [with T = const js::AtomStateEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/include/js/HashTable.h:451:76: required from 'void js::HashSet::clearAndShrink() [with T = js::AtomStateEntry; HashPolicy = js::AtomHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/GC.cpp:3969:41: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:167, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/frontend/ErrorReporter.h:14, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:177, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:167, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/frontend/ErrorReporter.h:14, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:177, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:167, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/frontend/ErrorReporter.h:14, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:177, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/CompileInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitCompartment.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Allocator.cpp:12, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:11: src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h: In instantiation of 'T* js::jit::JitAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = JS::Value; Value = unsigned int; HashPolicy = js::jit::LIRGraph::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/jit/LIR.h:1893:37: required from here src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:101:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 101 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/frontend/ErrorReporter.h:14, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:177, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:74:25: required from 'bool js::detail::InlineTable::switchToTable() [with InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:298:22: required from 'bool js::detail::InlineTable::add(js::detail::InlineTable::AddPtr&, KeyInput&&, Args&& ...) [with KeyInput = JSAtom*&; Args = {js::frontend::DeclaredNameInfo}; InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:535:25: required from 'bool js::InlineMap::add(js::InlineMap::AddPtr&, KeyInput&&, ValueInput&&) [with KeyInput = JSAtom*&; ValueInput = js::frontend::DeclaredNameInfo; Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; long unsigned int InlineEntries = 24; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; js::InlineMap::AddPtr = js::detail::InlineTable, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry, js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>, js::DefaultHasher, js::SystemAllocPolicy, 24>::AddPtr]' src/third_party/mozjs-60/extract/js/src/frontend/ParseContext.h:311:53: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/rollback_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/client/query.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/query.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.h:36, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/shared/BaselineCompiler-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/BaselineCompiler-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/BaselineCompiler-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:11: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.h:36, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/shared/BaselineCompiler-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/BaselineCompiler-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/BaselineCompiler-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:11: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.h:36, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/shared/BaselineCompiler-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/BaselineCompiler-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/BaselineCompiler-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.h:36, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/shared/BaselineCompiler-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/BaselineCompiler-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/BaselineCompiler-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.h:36, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/shared/BaselineCompiler-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/BaselineCompiler-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/BaselineCompiler-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.h:36, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/shared/BaselineCompiler-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/BaselineCompiler-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/BaselineCompiler-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:11: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.h:36, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/shared/BaselineCompiler-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/BaselineCompiler-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/BaselineCompiler-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:11: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.h:36, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/shared/BaselineCompiler-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/BaselineCompiler-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/BaselineCompiler-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.h:36, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.h:18, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.h:36, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/shared/BaselineCompiler-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/BaselineCompiler-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/BaselineCompiler-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:11: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.h:36, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.h:36, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.h:18, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.h:36, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.h:18, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.h:36, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.h:18, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/shared/BaselineCompiler-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/BaselineCompiler-x86-shared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/BaselineCompiler-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:11: src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h: In instantiation of 'T* js::jit::JitAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = JS::Value; Value = unsigned int; HashPolicy = js::jit::LIRGraph::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/jit/LIR.h:1893:37: required from here src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:101:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 101 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.h:36, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/client/sasl_aws_protocol_common_gen.cpp g++ -o build/opt/mongo/client/sasl_aws_client_protocol.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/kms-message/src -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/sasl_aws_client_protocol.cpp gcc -o build/opt/third_party/wiredtiger/src/btree/bt_huffman.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_huffman.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/cursor/cur_std.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/cursor/cur_std.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/icu4c-57.1/source/common/uchriter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uchriter.cpp g++ -o build/opt/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp g++ -o build/opt/mongo/db/query/explain.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/explain.cpp g++ -o build/opt/mongo/db/repl/replication_auth.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/replication_auth.cpp g++ -o build/opt/mongo/db/s/collection_sharding_state_factory_standalone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/collection_sharding_state_factory_standalone.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/query/explain.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/query/explain.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/query/explain.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/query/explain.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libreplication_auth.a build/opt/mongo/db/repl/replication_auth.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libreplication_auth.a g++ -o build/opt/third_party/shim_unwind.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS src/third_party/shim_unwind.cpp ar rcsTD build/opt/third_party/libshim_unwind.a build/opt/third_party/shim_unwind.o Skipping ranlib for thin archive build/opt/third_party/libshim_unwind.a g++ -o build/opt/mongo/s/write_ops/chunk_manager_targeter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/write_ops/chunk_manager_targeter.cpp In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/SymbolType.h:24, from src/third_party/mozjs-60/extract/js/src/gc/AtomMarking.h:13, from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpShared.h:25, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpShared.h:25, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x64/MacroAssembler-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:19, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/opt/mongo/util/net/ssl_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/ssl_options.cpp In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.cpp:7: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ 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 g++ -o build/opt/mongo/db/repl/oplog_buffer_proxy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/oplog_buffer_proxy.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/s/write_ops/chunk_manager_targeter.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/s/write_ops/chunk_manager_targeter.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/document_source_check_invalidate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_check_invalidate.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/s/write_ops/chunk_manager_targeter.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/s/write_ops/chunk_manager_targeter.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/rpc/metadata/repl_set_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/metadata/repl_set_metadata.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_change_stream.h:34, from src/mongo/db/pipeline/document_source_check_invalidate.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_change_stream.h:34, from src/mongo/db/pipeline/document_source_check_invalidate.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/rpc/metadata/repl_set_metadata.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_change_stream.h:34, from src/mongo/db/pipeline/document_source_check_invalidate.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_change_stream.h:34, from src/mongo/db/pipeline/document_source_check_invalidate.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/rpc/metadata/repl_set_metadata.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/grid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/grid.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/rpc/metadata/repl_set_metadata.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/rpc/metadata/repl_set_metadata.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/transaction_metrics_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/transaction_metrics_observer.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/grid.cpp:44: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/grid.cpp:44: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/bson/bsonelement.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/bsonelement.cpp g++ -o build/opt/mongo/util/net/socket_exception.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/socket_exception.cpp 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/db/storage/ephemeral_for_test/libstorage_ephemeral_for_test.a g++ -o build/opt/mongo/watchdog/watchdog_register.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/watchdog/watchdog_register.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/transaction_metrics_observer.h:32, from src/mongo/db/transaction_metrics_observer.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/transaction_metrics_observer.h:32, from src/mongo/db/transaction_metrics_observer.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/watchdog/libwatchdog_register.a build/opt/mongo/watchdog/watchdog_register.o Skipping ranlib for thin archive build/opt/mongo/watchdog/libwatchdog_register.a g++ -o build/opt/mongo/util/summation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/summation.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/transaction_metrics_observer.h:32, from src/mongo/db/transaction_metrics_observer.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/transaction_metrics_observer.h:32, from src/mongo/db/transaction_metrics_observer.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/grid.cpp:44: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/s2/s2cap.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2cap.cc g++ -o build/opt/third_party/s2/s2pointregion.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2pointregion.cc g++ -o build/opt/third_party/s2/s2polygonbuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2polygonbuilder.cc g++ -o build/opt/third_party/s2/s2loop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2loop.cc g++ -o build/opt/third_party/s2/s2latlng.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2latlng.cc g++ -o build/opt/third_party/s2/s2edgeindex.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2edgeindex.cc g++ -o build/opt/third_party/s2/s2polygon.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2polygon.cc g++ -o build/opt/third_party/s2/s2cellunion.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2cellunion.cc g++ -o build/opt/third_party/s2/s2region.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2region.cc g++ -o build/opt/third_party/s2/s2regioncoverer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2regioncoverer.cc src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/s2/s2cell.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2cell.cc g++ -o build/opt/third_party/s2/s2regionunion.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2regionunion.cc g++ -o build/opt/third_party/s2/s2edgeutil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2edgeutil.cc g++ -o build/opt/third_party/s2/s2polyline.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2polyline.cc g++ -o build/opt/third_party/s2/s2cellid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2cellid.cc g++ -o build/opt/mongo/s/client/num_hosts_targeted_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/client/num_hosts_targeted_metrics.cpp Install file: "src/third_party/wiredtiger/src/include/wiredtiger_ext.h" as "build/opt/third_party/wiredtiger/wiredtiger_ext.h" gcc -o build/opt/third_party/wiredtiger/ext/compressors/zlib/zlib_compress.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/ext/compressors/zlib/zlib_compress.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C Generating build/opt/mongo/db/query/distinct_command_gen.cpp 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 g++ -o build/opt/mongo/db/auth/user_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/user_set.cpp g++ -o build/opt/mongo/db/query/distinct_command_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/query/distinct_command_gen.cpp g++ -o build/opt/mongo/db/auth/authz_session_external_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/authz_session_external_state.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/s/client/num_hosts_targeted_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/distinct_command_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/s/client/num_hosts_targeted_metrics.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/distinct_command_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/s/client/num_hosts_targeted_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/s/client/num_hosts_targeted_metrics.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/distinct_command_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call Generating build/opt/mongo/db/auth/authorization_manager_impl_parameters_gen.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:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/distinct_command_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/auth/authorization_manager_impl_parameters_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/auth/authorization_manager_impl_parameters_gen.cpp g++ -o build/opt/mongo/db/auth/authz_manager_external_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/authz_manager_external_state.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/authorization_manager_impl_parameters_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/authorization_manager_impl_parameters_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/authorization_manager_impl_parameters_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/authorization_manager_impl_parameters_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/auth/authorization_manager_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/authorization_manager_impl.cpp ar rcsTD build/opt/mongo/db/query/libdistinct_command_idl.a build/opt/mongo/db/query/distinct_command_gen.o Skipping ranlib for thin archive build/opt/mongo/db/query/libdistinct_command_idl.a g++ -o build/opt/third_party/boost-1.70.0/libs/iostreams/src/file_descriptor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/iostreams/src/file_descriptor.cpp g++ -o build/opt/mongo/db/dbhelpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/dbhelpers.cpp g++ -o build/opt/mongo/db/service_liaison_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/service_liaison_mongod.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/dbhelpers.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:35, from src/mongo/db/service_liaison_mongod.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:35, from src/mongo/db/service_liaison_mongod.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/ops/insert.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ops/insert.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/dbhelpers.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/dbhelpers.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/dbhelpers.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/auth/user.h:45, from src/mongo/db/auth/authorization_manager.h:41, from src/mongo/db/auth/authorization_manager_impl.h:32, from src/mongo/db/auth/authorization_manager_impl.cpp:34: src/mongo/util/read_through_cache.h: In instantiation of 'mongo::Future mongo::ReadThroughCache::_asyncLookupWhileInvalidated(std::unique_lock, mongo::ReadThroughCache::InProgressLookup&) [with Key = int; Value = int]': src/mongo/util/read_through_cache.h:234:24: required from 'mongo::SharedSemiFuture::ValueHandle> mongo::ReadThroughCache::acquireAsync(const Key&) [with Key = int; Value = int]' src/mongo/util/read_through_cache.h:273:16: required from 'mongo::ReadThroughCache::ValueHandle mongo::ReadThroughCache::acquire(mongo::OperationContext*, const Key&) [with Key = int; Value = int]' src/mongo/db/auth/authorization_manager_impl.cpp:378:48: required from here src/mongo/util/read_through_cache.h:435:32: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] 435 | return std::move(future); | ^ src/mongo/util/read_through_cache.h:435:32: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:35, from src/mongo/db/service_liaison_mongod.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/util/read_through_cache.h: In instantiation of 'mongo::Future mongo::ReadThroughCache::_asyncLookupWhileInvalidated(std::unique_lock, mongo::ReadThroughCache::InProgressLookup&) [with Key = mongo::UserRequest; Value = mongo::User]': src/mongo/util/read_through_cache.h:234:24: required from 'mongo::SharedSemiFuture::ValueHandle> mongo::ReadThroughCache::acquireAsync(const Key&) [with Key = mongo::UserRequest; Value = mongo::User]' src/mongo/util/read_through_cache.h:273:16: required from 'mongo::ReadThroughCache::ValueHandle mongo::ReadThroughCache::acquire(mongo::OperationContext*, const Key&) [with Key = mongo::UserRequest; Value = mongo::User]' src/mongo/db/auth/authorization_manager_impl.cpp:469:41: required from here src/mongo/util/read_through_cache.h:435:32: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] src/mongo/util/read_through_cache.h:435:32: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:35, from src/mongo/db/service_liaison_mongod.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/util/invalidating_lru_cache.h:38, from src/mongo/util/read_through_cache.h:40, from src/mongo/db/auth/user.h:45, from src/mongo/db/auth/authorization_manager.h:41, from src/mongo/db/auth/authorization_manager_impl.h:32, from src/mongo/db/auth/authorization_manager_impl.cpp:34: src/mongo/util/lru_cache.h: In instantiation of 'boost::optional > mongo::LRUCache::add(const K&, V) [with K = int; V = std::shared_ptr::StoredValue>::StoredValue>; Hash = absl::hash_internal::Hash; KeyEqual = std::equal_to]': src/mongo/util/invalidating_lru_cache.h:232:38: required from 'mongo::InvalidatingLRUCache::ValueHandle mongo::InvalidatingLRUCache::insertOrAssignAndGet(const Key&, Value&&) [with Key = int; Value = mongo::ReadThroughCache::StoredValue]' src/mongo/util/read_through_cache.h:246:76: required from 'mongo::SharedSemiFuture::ValueHandle> mongo::ReadThroughCache::acquireAsync(const Key&) [with Key = int; Value = int]' src/mongo/util/read_through_cache.h:273:16: required from 'mongo::ReadThroughCache::ValueHandle mongo::ReadThroughCache::acquire(mongo::OperationContext*, const Key&) [with Key = int; Value = int]' src/mongo/db/auth/authorization_manager_impl.cpp:378:48: required from here src/mongo/util/lru_cache.h:108:34: warning: redundant move in return statement [-Wredundant-move] 108 | return std::move(pair); | ^ src/mongo/util/lru_cache.h:108:34: note: remove 'std::move' call src/mongo/util/lru_cache.h: In instantiation of 'boost::optional > mongo::LRUCache::add(const K&, V) [with K = mongo::UserRequest; V = std::shared_ptr::StoredValue>::StoredValue>; Hash = absl::hash_internal::Hash; KeyEqual = std::equal_to]': src/mongo/util/invalidating_lru_cache.h:232:38: required from 'mongo::InvalidatingLRUCache::ValueHandle mongo::InvalidatingLRUCache::insertOrAssignAndGet(const Key&, Value&&) [with Key = mongo::UserRequest; Value = mongo::ReadThroughCache::StoredValue]' src/mongo/util/read_through_cache.h:246:76: required from 'mongo::SharedSemiFuture::ValueHandle> mongo::ReadThroughCache::acquireAsync(const Key&) [with Key = mongo::UserRequest; Value = mongo::User]' src/mongo/util/read_through_cache.h:273:16: required from 'mongo::ReadThroughCache::ValueHandle mongo::ReadThroughCache::acquire(mongo::OperationContext*, const Key&) [with Key = mongo::UserRequest; Value = mongo::User]' src/mongo/db/auth/authorization_manager_impl.cpp:469:41: required from here src/mongo/util/lru_cache.h:108:34: warning: redundant move in return statement [-Wredundant-move] src/mongo/util/lru_cache.h:108:34: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/make_js_function.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/make_js_function.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/client/sdam/sdam_datatypes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/sdam/sdam_datatypes.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/make_js_function.h:32, from src/mongo/db/pipeline/make_js_function.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/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 build/opt/mongo/db/auth/authorization_manager_impl_parameters_gen.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauth_impl_internal.a Generating build/opt/mongo/db/create_indexes_gen.cpp g++ -o build/opt/mongo/db/create_indexes_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/create_indexes_gen.cpp g++ -o build/opt/mongo/db/query/collation/collation_spec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/collation/collation_spec.cpp gcc -o build/opt/third_party/wiredtiger/src/schema/schema_alter.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/schema/schema_alter.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 g++ -o build/opt/mongo/s/request_types/shard_collection_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/request_types/shard_collection_gen.cpp Generating build/opt/mongo/db/auth/sasl_options_gen.cpp g++ -o build/opt/mongo/db/auth/sasl_options_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/auth/sasl_options_gen.cpp g++ -o build/opt/mongo/db/auth/sasl_options_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/sasl_options_init.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/create_indexes_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/shard_collection_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/sasl_options_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/sasl_options_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/sasl_options_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/sasl_options_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call Generating build/opt/mongo/db/commands/rwc_defaults_commands_gen.cpp g++ -o build/opt/mongo/db/commands/read_write_concern_defaults_server_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/read_write_concern_defaults_server_status.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/commands/read_write_concern_defaults_server_status.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/commands/read_write_concern_defaults_server_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/icu4c-57.1/source/common/ucat.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucat.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/exec/requires_collection_stage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/requires_collection_stage.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/commands/read_write_concern_defaults_server_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/commands/read_write_concern_defaults_server_status.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/stats/lock_server_status_section.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/stats/lock_server_status_section.cpp ar rcsTD build/opt/mongo/db/auth/libsasl_options_init.a build/opt/mongo/db/auth/sasl_options_init.o build/opt/mongo/db/auth/sasl_options_gen.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libsasl_options_init.a g++ -o build/opt/mongo/db/stats/storage_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/stats/storage_stats.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_collection_stage.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_collection_stage.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_collection_stage.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_collection_stage.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/stats/lock_server_status_section.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/stats/lock_server_status_section.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/stats/lock_server_status_section.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/stats/lock_server_status_section.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/stats/storage_stats.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/stats/storage_stats.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/stats/latency_server_status_section.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/stats/latency_server_status_section.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/stats/storage_stats.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/stats/storage_stats.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/stats/latency_server_status_section.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/uloc_keytype.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uloc_keytype.cpp g++ -o build/opt/mongo/db/storage/storage_engine_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/storage_engine_impl.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/stats/latency_server_status_section.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/stats/latency_server_status_section.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/stats/latency_server_status_section.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/free_mon/free_mon_op_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_op_observer.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:42, from src/mongo/db/storage/storage_engine_impl.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:42, from src/mongo/db/storage/storage_engine_impl.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/free_mon/free_mon_op_observer.h:32, from src/mongo/db/free_mon/free_mon_op_observer.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/free_mon/free_mon_op_observer.h:32, from src/mongo/db/free_mon/free_mon_op_observer.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:42, from src/mongo/db/storage/storage_engine_impl.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:42, from src/mongo/db/storage/storage_engine_impl.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/granularity_rounder_powers_of_two.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/granularity_rounder_powers_of_two.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/free_mon/free_mon_op_observer.h:32, from src/mongo/db/free_mon/free_mon_op_observer.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/free_mon/free_mon_op_observer.h:32, from src/mongo/db/free_mon/free_mon_op_observer.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/granularity_rounder.h:38, from src/mongo/db/pipeline/granularity_rounder_powers_of_two.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/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 ar rcsTD build/opt/mongo/db/commands/liblist_collections_filter.a build/opt/mongo/db/commands/list_collections_filter.o Skipping ranlib for thin archive build/opt/mongo/db/commands/liblist_collections_filter.a g++ -o build/opt/mongo/db/periodic_runner_job_decrease_snapshot_cache_pressure.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/periodic_runner_job_decrease_snapshot_cache_pressure.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/fts/fts_index_format.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/fts/fts_index_format.cpp g++ -o build/opt/mongo/db/pipeline/document_source_plan_cache_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_plan_cache_stats.cpp g++ -o build/opt/mongo/db/auth/security_key.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/security_key.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_plan_cache_stats.h:32, from src/mongo/db/pipeline/document_source_plan_cache_stats.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/generic_servers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/generic_servers.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_plan_cache_stats.h:32, from src/mongo/db/pipeline/document_source_plan_cache_stats.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_policies.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.h:33, from src/mongo/db/auth/security_key.cpp:51: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/util/fast_clock_source_factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/fast_clock_source_factory.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_plan_cache_stats.h:32, from src/mongo/db/pipeline/document_source_plan_cache_stats.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_plan_cache_stats.h:32, from src/mongo/db/pipeline/document_source_plan_cache_stats.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_policies.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.h:33, from src/mongo/db/auth/security_key.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_policies.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.h:33, from src/mongo/db/auth/security_key.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_policies.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.h:33, from src/mongo/db/auth/security_key.cpp:51: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/util/clock_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/clock_source.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic_servers.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic_servers.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/util/background_thread_clock_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/background_thread_clock_source.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/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/util/libclock_sources.a g++ -o build/opt/mongo/db/catalog/collection_validation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/collection_validation.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/s/query/cluster_query_knobs_gen.cpp g++ -o build/opt/mongo/db/pipeline/sharded_agg_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/sharded_agg_helpers.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_validation.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/catalog/commit_quorum_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/commit_quorum_options.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:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_validation.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_validation.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_validation.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/logical_session_cache_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/logical_session_cache_impl.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/sharded_agg_helpers.h:32, from src/mongo/db/pipeline/sharded_agg_helpers.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/db/pipeline/sharded_agg_helpers.h:32, from src/mongo/db/pipeline/sharded_agg_helpers.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/db/pipeline/sharded_agg_helpers.h:32, from src/mongo/db/pipeline/sharded_agg_helpers.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/sharded_agg_helpers.h:32, from src/mongo/db/pipeline/sharded_agg_helpers.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/auth/security_file.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/security_file.cpp ar rcsTD build/opt/mongo/db/auth/libsecurity_file.a build/opt/mongo/db/auth/security_file.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libsecurity_file.a Generating build/opt/mongo/db/server_options_general_gen.cpp g++ -o build/opt/mongo/db/server_options_general_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/server_options_general_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/liblogical_session_cache_impl.a build/opt/mongo/db/initialize_operation_session_info.o build/opt/mongo/db/logical_session_cache_impl.o Skipping ranlib for thin archive build/opt/mongo/db/liblogical_session_cache_impl.a g++ -o build/opt/mongo/db/pipeline/document_source_queue.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_queue.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/server_options_general_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/catalog/libcollection_validation.a build/opt/mongo/db/catalog/collection_validation.o build/opt/mongo/db/catalog/validate_adaptor.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libcollection_validation.a g++ -o build/opt/mongo/db/command_generic_argument.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/command_generic_argument.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/server_options_general_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308: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:40, from src/mongo/db/pipeline/sharded_agg_helpers.h:32, from src/mongo/db/pipeline/sharded_agg_helpers.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/server_options_general_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/server_options_general_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_queue.h:34, from src/mongo/db/pipeline/document_source_queue.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_queue.h:34, from src/mongo/db/pipeline/document_source_queue.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/rwc_defaults_commands_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands/rwc_defaults_commands_gen.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_queue.h:34, from src/mongo/db/pipeline/document_source_queue.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_queue.h:34, from src/mongo/db/pipeline/document_source_queue.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/rwc_defaults_commands_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/rwc_defaults_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/pipeline/libsharded_agg_helpers.a build/opt/mongo/db/pipeline/sharded_agg_helpers.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libsharded_agg_helpers.a g++ -o build/opt/mongo/db/commands/logical_session_server_status_section.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/logical_session_server_status_section.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/rwc_defaults_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/rwc_defaults_commands_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/conn_pool_sync.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/conn_pool_sync.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/commands/logical_session_server_status_section.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/user_management_commands_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/user_management_commands_common.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/commands/logical_session_server_status_section.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/commands/logical_session_server_status_section.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/commands/logical_session_server_status_section.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_sync.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_sync.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call Generating build/opt/mongo/db/commands/drop_connections_gen.cpp g++ -o build/opt/mongo/db/commands/drop_connections_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/drop_connections_command.cpp g++ -o build/opt/mongo/db/commands/connection_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/connection_status.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/drop_connections_command.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/connection_status.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/drop_connections_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/drop_connections_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/drop_connections_command.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/drop_connections_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands/drop_connections_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/connection_status.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/connection_status.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/connection_status.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/traffic_recording_cmds.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/traffic_recording_cmds.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/drop_connections_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/drop_connections_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/traffic_recording_cmds.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/drop_connections_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/drop_connections_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/traffic_recording_cmds.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/traffic_recording_cmds.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/traffic_recording_cmds.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call Generating build/opt/mongo/db/commands/map_reduce_gen.cpp g++ -o build/opt/mongo/db/commands/mr_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/mr_common.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/mr_common.h:35, from src/mongo/db/commands/mr_common.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/exceptions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/exceptions.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/mr_common.h:35, from src/mongo/db/commands/mr_common.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/mr_common.h:35, from src/mongo/db/commands/mr_common.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/mr_common.h:35, from src/mongo/db/commands/mr_common.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_u32.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_u32.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/scripting/mozjs/nativefunction.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/nativefunction.cpp Generating build/opt/mongo/db/keyfile_option_gen.cpp g++ -o build/opt/mongo/db/keyfile_option_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/keyfile_option_gen.cpp In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:29, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:34, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:30, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:29, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:34, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:30, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:29, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:34, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:30, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:29, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/ArrayBufferObject.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AtomicOperations-x86-shared-gcc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/AtomicOperations.h:352, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:29, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/ArrayBufferObject.h:14, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AtomicOperations-x86-shared-gcc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/AtomicOperations.h:352, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:29, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/ArrayBufferObject.h:15, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AtomicOperations-x86-shared-gcc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/AtomicOperations.h:352, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:29, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/ArrayBufferObject.h:15, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AtomicOperations-x86-shared-gcc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/AtomicOperations.h:352, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:29, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/ArrayBufferObject.h:15, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AtomicOperations-x86-shared-gcc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/AtomicOperations.h:352, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:29, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:29, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:29, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x64/MacroAssembler-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:19, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:27, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:29, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::wasm::LinkDataTierCacheablePod]': src/third_party/mozjs-60/extract/js/src/wasm/WasmModule.h:50:50: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::wasm::LinkDataTierCacheablePod'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/wasm/WasmCompile.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:23, from src/third_party/mozjs-60/extract/js/src/wasm/WasmStubs.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmStubs.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:11: src/third_party/mozjs-60/extract/js/src/wasm/WasmModule.h:43:8: note: 'struct js::wasm::LinkDataTierCacheablePod' declared here 43 | struct LinkDataTierCacheablePod | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/Value.h:24, from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:29, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap >::MapHashPolicy; AllocPolicy = js::LifoAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::wasm::AstName; Value = unsigned int; HashPolicy = js::wasm::AstNameHasher; AllocPolicy = js::LifoAllocPolicy]' src/third_party/mozjs-60/extract/js/src/wasm/WasmTextToBinary.cpp:3964:22: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap >::MapHashPolicy, js::LifoAllocPolicy >::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap >::MapHashPolicy, js::LifoAllocPolicy >::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:29, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:29, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:29, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:29, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:29, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:29, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:33, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:30, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h: In instantiation of 'T* js::LifoAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; js::Fallibility fb = js::Fallible; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap >::MapHashPolicy; AllocPolicy = js::LifoAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap >::MapHashPolicy; AllocPolicy = js::LifoAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = js::wasm::AstSig*; Value = unsigned int; HashPolicy = js::wasm::AstSig; AllocPolicy = js::LifoAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/wasm/WasmAST.h:941:28: required from here src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:910:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 910 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/Value.h:24, from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:29, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:33, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:30, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h: In instantiation of 'T* js::LifoAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; js::Fallibility fb = js::Fallible; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap >::MapHashPolicy; AllocPolicy = js::LifoAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap >::MapHashPolicy; AllocPolicy = js::LifoAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = js::wasm::AstName; Value = unsigned int; HashPolicy = js::wasm::AstNameHasher; AllocPolicy = js::LifoAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/wasm/WasmTextToBinary.cpp:3955:28: required from here src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:910:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 910 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/Value.h:24, from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/threading/Thread.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.h:29, from src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/keyfile_option_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/keyfile_option_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/query/count_command_as_aggregation_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/count_command_as_aggregation_command.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:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/keyfile_option_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/keyfile_option_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_recovery_unit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_recovery_unit.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/sleep_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/sleep_command.cpp ar rcsTD build/opt/mongo/db/commands/libservers.a 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/drop_connections_command.o build/opt/mongo/db/commands/generic_servers.o build/opt/mongo/db/commands/isself.o build/opt/mongo/db/commands/logical_session_server_status_section.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/traffic_recording_cmds.o build/opt/mongo/db/commands/user_management_commands_common.o build/opt/mongo/db/commands/drop_connections_gen.o build/opt/mongo/db/commands/rwc_defaults_commands_gen.o build/opt/mongo/db/commands/user_management_commands_gen.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libservers.a g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_copysign.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/s_copysign.cpp g++ -o build/opt/mongo/db/storage/write_unit_of_work.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/write_unit_of_work.cpp g++ -o build/opt/mongo/db/lasterror.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/lasterror.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/uniset_closure.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uniset_closure.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/sleep_command.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/field_ref.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/field_ref.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/sleep_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/storage/write_unit_of_work.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/storage/write_unit_of_work.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/sleep_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/sleep_command.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/trim.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:19, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::constraint::failed() [with Model = boost::algorithm::FinderConcept >, __gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:77:13: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::{anonymous}::appendDupKeyFields(mongo::BSONObjBuilder&, std::string)::]' src/mongo/db/lasterror.cpp:50:17: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:47:52: warning: 'this' pointer is null [-Wnonnull] 47 | static void failed() { ((Model*)0)->constraints(); } | ~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:26, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:23, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/algorithm/string/concept.hpp:40:18: note: in a call to non-static member function 'void boost::algorithm::FinderConcept::constraints() [with FinderT = boost::algorithm::detail::token_finderF >; IteratorT = __gnu_cxx::__normal_iterator >]' 40 | void constraints() | ^~~~~~~~~~~ g++ -o build/opt/mongo/db/pipeline/accumulation_statement.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulation_statement.cpp In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/trim.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:19, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: required from 'struct boost::CopyConstructible<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:125:16: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: [ skipping 14 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::{anonymous}::appendDupKeyFields(mongo::BSONObjBuilder&, std::string)::]' src/mongo/db/lasterror.cpp:50:17: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/trim.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:19, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::CopyConstructible<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/trim.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:19, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:114:7: [ skipping 18 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::{anonymous}::appendDupKeyFields(mongo::BSONObjBuilder&, std::string)::]' src/mongo/db/lasterror.cpp:50:17: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/trim.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:19, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/trim.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:19, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:114:7: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 13 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::{anonymous}::appendDupKeyFields(mongo::BSONObjBuilder&, std::string)::]' src/mongo/db/lasterror.cpp:50:17: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/trim.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:19, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::incrementable_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/trim.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:19, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:136:13: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 13 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::{anonymous}::appendDupKeyFields(mongo::BSONObjBuilder&, std::string)::]' src/mongo/db/lasterror.cpp:50:17: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/trim.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:19, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/trim.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:19, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: required from 'struct boost::EqualityComparable<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 13 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::{anonymous}::appendDupKeyFields(mongo::BSONObjBuilder&, std::string)::]' src/mongo/db/lasterror.cpp:50:17: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/trim.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:19, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::EqualityComparable<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/trim.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:19, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/range/concepts.hpp:152:13: [ skipping 17 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::{anonymous}::appendDupKeyFields(mongo::BSONObjBuilder&, std::string)::]' src/mongo/db/lasterror.cpp:50:17: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/trim.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:19, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/trim.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:19, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:152:13: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ > >)>' src/third_party/boost-1.70.0/boost/range/concepts.hpp:278:9: [ skipping 12 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::{anonymous}::appendDupKeyFields(mongo::BSONObjBuilder&, std::string)::]' src/mongo/db/lasterror.cpp:50:17: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/trim.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:19, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::single_pass_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/trim.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:19, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ > >)>' src/third_party/boost-1.70.0/boost/range/concepts.hpp:278:9: [ skipping 12 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::{anonymous}::appendDupKeyFields(mongo::BSONObjBuilder&, std::string)::]' src/mongo/db/lasterror.cpp:50:17: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/trim.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:19, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/trim.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:19, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:278:9: required from 'struct boost::SinglePassRangeConcept > > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept > > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ > > >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: [ skipping 7 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::{anonymous}::appendDupKeyFields(mongo::BSONObjBuilder&, std::string)::]' src/mongo/db/lasterror.cpp:50:17: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/trim.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:19, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::range_detail::SinglePassIteratorConcept::~SinglePassIteratorConcept() [with Iterator = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 158 | BOOST_CONCEPT_USAGE(SinglePassIteratorConcept) | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/trim.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:19, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: required from 'struct boost::SinglePassRangeConcept > > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept > > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ > > >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: [ skipping 7 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::{anonymous}::appendDupKeyFields(mongo::BSONObjBuilder&, std::string)::]' src/mongo/db/lasterror.cpp:50:17: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/trim.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:19, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::SinglePassRangeConcept > > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/trim.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:19, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::SinglePassRangeConcept > > >]': src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range<__gnu_cxx::__normal_iterator > >; SinglePassRange2 = boost::iterator_range<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = __gnu_cxx::__normal_iterator >; Iterator2T = __gnu_cxx::__normal_iterator >]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = __gnu_cxx::__normal_iterator >]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; Facade2 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:900:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator==(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; V1 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; V2 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/third_party/boost-1.70.0/boost/iterator/iterator_adaptor.hpp:305:29: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::{anonymous}::appendDupKeyFields(mongo::BSONObjBuilder&, std::string)::]' src/mongo/db/lasterror.cpp:50:17: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/trim.hpp:19, from src/third_party/boost-1.70.0/boost/algorithm/string.hpp:19, from src/mongo/db/lasterror.cpp:32: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::SinglePassRangeConcept::~SinglePassRangeConcept() [with T = const boost::iterator_range<__gnu_cxx::__normal_iterator > >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 284 | BOOST_CONCEPT_USAGE(SinglePassRangeConcept) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::CopyConstructible<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: required from 'struct boost::CopyConstructible<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:125:16: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: [ skipping 15 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::{anonymous}::appendDupKeyFields(mongo::BSONObjBuilder&, std::string)::]' src/mongo/db/lasterror.cpp:50:17: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::CopyConstructible::~CopyConstructible() [with TT = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 167 | BOOST_CONCEPT_USAGE(CopyConstructible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 19 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::{anonymous}::appendDupKeyFields(mongo::BSONObjBuilder&, std::string)::]' src/mongo/db/lasterror.cpp:50:17: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::incrementable_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/range/concepts.hpp:136:13: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: [ skipping 14 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::{anonymous}::appendDupKeyFields(mongo::BSONObjBuilder&, std::string)::]' src/mongo/db/lasterror.cpp:50:17: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::range_detail::IncrementableIteratorConcept::~IncrementableIteratorConcept() [with Iterator = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:136:13: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 136 | BOOST_CONCEPT_USAGE(IncrementableIteratorConcept) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::EqualityComparable<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: required from 'struct boost::EqualityComparable<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: [ skipping 14 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::{anonymous}::appendDupKeyFields(mongo::BSONObjBuilder&, std::string)::]' src/mongo/db/lasterror.cpp:50:17: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::EqualityComparable::~EqualityComparable() [with TT = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 233 | BOOST_CONCEPT_USAGE(EqualityComparable) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 18 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::{anonymous}::appendDupKeyFields(mongo::BSONObjBuilder&, std::string)::]' src/mongo/db/lasterror.cpp:50:17: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::single_pass_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 13 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::{anonymous}::appendDupKeyFields(mongo::BSONObjBuilder&, std::string)::]' src/mongo/db/lasterror.cpp:50:17: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::range_detail::SinglePassIteratorConcept::~SinglePassIteratorConcept() [with Iterator = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 158 | BOOST_CONCEPT_USAGE(SinglePassIteratorConcept) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::SinglePassRangeConcept > > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > > >]' src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: required from 'struct boost::SinglePassRangeConcept > > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept > > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 8 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::{anonymous}::appendDupKeyFields(mongo::BSONObjBuilder&, std::string)::]' src/mongo/db/lasterror.cpp:50:17: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::SinglePassRangeConcept::~SinglePassRangeConcept() [with T = const boost::iterator_range<__gnu_cxx::__normal_iterator > >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 284 | BOOST_CONCEPT_USAGE(SinglePassRangeConcept) | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/storage/write_unit_of_work.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/storage/write_unit_of_work.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/db/commands/whats_my_sni_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/whats_my_sni_command.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/expression.h:47, from src/mongo/db/pipeline/accumulator.h:43, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/accumulation_statement.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/whats_my_sni_command.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/whats_my_sni_command.cpp:30: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/whats_my_sni_command.cpp:30: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/whats_my_sni_command.cpp:30: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/exec/sort_key_comparator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/sort_key_comparator.cpp gcc -o build/opt/third_party/wiredtiger/src/btree/bt_import.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_import.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/named_scope_format_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/named_scope_format_parser.cpp g++ -o build/opt/mongo/db/exec/text_match.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/text_match.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/document_path_support.h:38, from src/mongo/db/query/sort_pattern.h:34, from src/mongo/db/exec/sort_key_comparator.h:35, from src/mongo/db/exec/sort_key_comparator.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/exec/text_match.h:34, from src/mongo/db/exec/text_match.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/transport/message_compressor_snappy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/zstandard-1.4.3/zstd/lib -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/transport/message_compressor_snappy.cpp g++ -o build/opt/mongo/db/index/haystack_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index/haystack_access_method.cpp gcc -o build/opt/third_party/wiredtiger/src/os_posix/os_thread.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_thread.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C Generating build/opt/mongo/s/client/shard_connection_gen.cpp g++ -o build/opt/mongo/s/client/shard_connection_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/client/shard_connection_gen.cpp g++ -o build/opt/mongo/s/client/shard_connection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/client/shard_connection.cpp g++ -o build/opt/mongo/util/latch_analyzer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/latch_analyzer.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/index/haystack_access_method_internal.h:35, from src/mongo/db/index/haystack_access_method.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/client/shard_connection_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/index/haystack_access_method_internal.h:35, from src/mongo/db/index/haystack_access_method.cpp:44: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/latch_analyzer.h:36, from src/mongo/util/latch_analyzer.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/client/shard_connection_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/index/haystack_access_method_internal.h:35, from src/mongo/db/index/haystack_access_method.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/index/haystack_access_method_internal.h:35, from src/mongo/db/index/haystack_access_method.cpp:44: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/client/shard_connection_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/latch_analyzer.h:36, from src/mongo/util/latch_analyzer.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/client/shard_connection_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/latch_analyzer.h:36, from src/mongo/util/latch_analyzer.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/latch_analyzer.h:36, from src/mongo/util/latch_analyzer.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/client/shard_connection.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/client/shard_connection.cpp:49: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/client/shard_connection.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/client/shard_connection.cpp:49: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/libremove_saver.a build/opt/mongo/db/storage/remove_saver.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libremove_saver.a g++ -o build/opt/mongo/scripting/mozjs/engine_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/scripting/mozjs/engine_gen.cpp Generating build/opt/mongo/db/server_options_base_gen.cpp g++ -o build/opt/mongo/db/server_options_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/server_options_base.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/scripting/mozjs/engine_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/scripting/mozjs/engine_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289: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/shard_connection_gen.o build/opt/mongo/s/client/version_manager.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:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/s/libsharding_legacy_api.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:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/database_version_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/database_version_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:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/liblatch_analyzer.a build/opt/mongo/util/latch_analyzer.o Skipping ranlib for thin archive build/opt/mongo/util/liblatch_analyzer.a g++ -o build/opt/mongo/db/commands/kill_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/kill_op.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/scripting/mozjs/engine_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/scripting/mozjs/engine_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/client/connection_string.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/connection_string.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/database_version_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/schema/schema_drop.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/schema/schema_drop.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:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op.cpp:42: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call Generating build/opt/mongo/db/pipeline/document_source_union_with_gen.cpp g++ -o build/opt/mongo/db/pipeline/document_source_union_with_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/pipeline/document_source_union_with_gen.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op.cpp:42: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/idl/server_parameter_with_storage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/idl/server_parameter_with_storage.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_union_with_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_union_with_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_union_with_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_union_with_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/concurrency/write_conflict_exception.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/concurrency/write_conflict_exception.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/platform/stack_locator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/platform/stack_locator.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/query/map_reduce_output_format.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/map_reduce_output_format.cpp g++ -o build/opt/mongo/scripting/mozjs/db.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/db.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/concurrency/write_conflict_exception.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/concurrency/write_conflict_exception.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/concurrency/write_conflict_exception.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/concurrency/write_conflict_exception.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/query/libmap_reduce_output_format.a build/opt/mongo/db/query/map_reduce_output_format.o Skipping ranlib for thin archive build/opt/mongo/db/query/libmap_reduce_output_format.a g++ -o build/opt/third_party/boost-1.70.0/libs/iostreams/src/mapped_file.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/iostreams/src/mapped_file.cpp g++ -o build/opt/mongo/db/default_baton.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/default_baton.cpp gcc -o build/opt/third_party/wiredtiger/src/config/test_config.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/config/test_config.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/third_party/mozjs-60/include/jspubtd.h:17, from src/third_party/mozjs-60/include/jsapi.h:26, from src/mongo/scripting/mozjs/wraptype.h:33, from src/mongo/scripting/mozjs/db.h:32, from src/mongo/scripting/mozjs/db.cpp:32: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 1]': src/third_party/mozjs-60/include/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 1]' src/mongo/scripting/mozjs/db.cpp:98:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/jsapi.h:29, from src/mongo/scripting/mozjs/wraptype.h:33, from src/mongo/scripting/mozjs/db.h:32, from src/mongo/scripting/mozjs/db.cpp:32: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ g++ -o build/opt/mongo/logger/component_message_log_domain.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logger/component_message_log_domain.cpp g++ -o build/opt/mongo/db/commands/haystack.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/haystack.cpp g++ -o build/opt/mongo/db/pipeline/document_source_internal_split_pipeline.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/catalog/uncommitted_collections.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/uncommitted_collections.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:32, from src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/catalog/collection_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/collection_catalog.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/haystack.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:32, from src/mongo/db/pipeline/document_source_internal_split_pipeline.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/haystack.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:32, from src/mongo/db/pipeline/document_source_internal_split_pipeline.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:32, from src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/haystack.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/haystack.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/uncommitted_collections.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/uncommitted_collections.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/uncommitted_collections.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/uncommitted_collections.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/collection_catalog.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/collection_catalog.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/collection_catalog.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/collection_catalog.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/util/background.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/background.cpp g++ -o build/opt/mongo/db/pipeline/document_source_redact.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_redact.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/get_shard_map_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/get_shard_map_cmd.cpp 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 gcc -o build/opt/third_party/wiredtiger/src/log/log_auto.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/log/log_auto.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/stats/top.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/stats/top.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_redact.h:32, from src/mongo/db/pipeline/document_source_redact.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_redact.h:32, from src/mongo/db/pipeline/document_source_redact.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/get_shard_map_cmd.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_redact.h:32, from src/mongo/db/pipeline/document_source_redact.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_redact.h:32, from src/mongo/db/pipeline/document_source_redact.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/catalog/libcollection_catalog.a build/opt/mongo/db/catalog/collection_catalog.o build/opt/mongo/db/catalog/uncommitted_collections.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libcollection_catalog.a g++ -o build/opt/mongo/db/stats/operation_latency_histogram.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/stats/operation_latency_histogram.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/get_shard_map_cmd.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/get_shard_map_cmd.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/get_shard_map_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/stats/top.h:38, from src/mongo/db/stats/top.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/stats/top.h:38, from src/mongo/db/stats/top.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/stats/top.h:38, from src/mongo/db/stats/top.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/stats/top.h:38, from src/mongo/db/stats/top.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/stats/operation_latency_histogram.h:33, from src/mongo/db/stats/operation_latency_histogram.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/stats/operation_latency_histogram.h:33, from src/mongo/db/stats/operation_latency_histogram.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/stats/operation_latency_histogram.h:33, from src/mongo/db/stats/operation_latency_histogram.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/stats/operation_latency_histogram.h:33, from src/mongo/db/stats/operation_latency_histogram.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call 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 g++ -o build/opt/mongo/db/catalog/health_log_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/catalog/health_log_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/hasher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/hasher.cpp g++ -o build/opt/mongo/util/options_parser/options_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/options_parser/options_parser.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/health_log_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/audit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/audit.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 g++ -o build/opt/mongo/rpc/get_status_from_command_result.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/get_status_from_command_result.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/k_exp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/k_exp.cpp g++ -o build/opt/mongo/db/pipeline/document_source_change_stream_close_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_change_stream_close_cursor.cpp g++ -o build/opt/mongo/db/pipeline/document_source_match.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_match.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.h:33, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.h:33, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call 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 -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/request_types/flush_routing_table_cache_updates_gen.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:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.h:33, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.h:33, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/matcher.h:36, from src/mongo/db/pipeline/document_source_match.h:37, from src/mongo/db/pipeline/document_source_match.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/matcher.h:36, from src/mongo/db/pipeline/document_source_match.h:37, from src/mongo/db/pipeline/document_source_match.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:36, from src/mongo/db/pipeline/document_source_match.h:37, from src/mongo/db/pipeline/document_source_match.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/transactions_stats_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/transactions_stats_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/matcher.h:36, from src/mongo/db/pipeline/document_source_match.h:37, from src/mongo/db/pipeline/document_source_match.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document_source_match.cpp:41: 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:85:25: warning: redundant move in return statement [-Wredundant-move] 85 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:85: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:140:25: warning: redundant move in return statement [-Wredundant-move] 140 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:140: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:177:25: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:177:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, 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/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/transactions_stats_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/matcher.h:36, from src/mongo/db/pipeline/document_source_match.h:37, from src/mongo/db/pipeline/document_source_match.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/db/repl/replication_coordinator_impl_gen.cpp g++ -o build/opt/mongo/db/repl/replication_coordinator_impl_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/repl/replication_coordinator_impl_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/exec/upsert_stage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/upsert_stage.cpp gcc -o build/opt/third_party/wiredtiger/src/btree/bt_compact.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_compact.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/replication_coordinator_impl_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/idl/server_parameter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/idl/server_parameter.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/replication_coordinator_impl_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbinode.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/rbbinode.cpp g++ -o build/opt/mongo/scripting/mozjs/dbpointer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/dbpointer.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/update_stage.h:33, from src/mongo/db/exec/upsert_stage.h:32, from src/mongo/db/exec/upsert_stage.cpp:30: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/replication_coordinator_impl_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/replication_coordinator_impl_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/update_stage.h:33, from src/mongo/db/exec/upsert_stage.h:32, from src/mongo/db/exec/upsert_stage.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/update_stage.h:33, from src/mongo/db/exec/upsert_stage.h:32, from src/mongo/db/exec/upsert_stage.cpp:30: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/update_stage.h:33, from src/mongo/db/exec/upsert_stage.h:32, from src/mongo/db/exec/upsert_stage.cpp:30: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/idl/libserver_parameter.a build/opt/mongo/idl/server_parameter.o build/opt/mongo/idl/server_parameter_with_storage.o Skipping ranlib for thin archive build/opt/mongo/idl/libserver_parameter.a g++ -o build/opt/mongo/db/commands/kill_op_cmd_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/kill_op_cmd_base.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op_cmd_base.h:30, from src/mongo/db/commands/kill_op_cmd_base.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/schema/schema_truncate.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/schema/schema_truncate.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op_cmd_base.h:30, from src/mongo/db/commands/kill_op_cmd_base.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src45.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src45.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:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op_cmd_base.h:30, from src/mongo/db/commands/kill_op_cmd_base.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op_cmd_base.h:30, from src/mongo/db/commands/kill_op_cmd_base.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/logical_clock.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/logical_clock.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/periodic_sharded_index_consistency_checker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/periodic_sharded_index_consistency_checker.cpp In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/wasm/WasmCode.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.h:24, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src45.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:34, from src/third_party/mozjs-60/extract/js/src/wasm/WasmCode.h:25, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.h:24, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src45.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/wasm/WasmCode.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.h:24, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src45.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:34, from src/third_party/mozjs-60/extract/js/src/wasm/WasmCode.h:25, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.h:24, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src45.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/wasm/WasmCode.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.h:24, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src45.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:34, from src/third_party/mozjs-60/extract/js/src/wasm/WasmCode.h:25, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.h:24, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src45.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/wasm/WasmCode.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.h:24, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src45.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.cpp:25, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src45.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/wasm/WasmCode.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.h:24, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src45.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpShared.h:25, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.cpp:25, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src45.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/wasm/WasmCode.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.h:24, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src45.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpShared.h:25, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.cpp:25, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src45.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/wasm/WasmCode.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.h:24, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src45.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.cpp:25, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src45.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/wasm/WasmCode.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.h:24, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src45.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.cpp:25, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src45.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/wasm/WasmCode.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.h:24, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src45.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:31, from src/third_party/mozjs-60/extract/js/src/wasm/WasmCode.h:25, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.h:24, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src45.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/wasm/WasmCode.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.h:24, from src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src45.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/liblogical_clock.a build/opt/mongo/db/logical_clock.o build/opt/mongo/db/logical_clock_gen.o Skipping ranlib for thin archive build/opt/mongo/db/liblogical_clock.a g++ -o build/opt/mongo/db/keys_collection_client_direct.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/keys_collection_client_direct.cpp gcc -o build/opt/third_party/wiredtiger/src/schema/schema_stat.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/schema/schema_stat.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/exec/and_hash.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/and_hash.cpp g++ -o build/opt/mongo/db/repl/oplog_fetcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/oplog_fetcher.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/periodic_sharded_index_consistency_checker.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/periodic_sharded_index_consistency_checker.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/periodic_sharded_index_consistency_checker.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/periodic_sharded_index_consistency_checker.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/exec/and_hash.h:34, from src/mongo/db/exec/and_hash.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/oplog_fetcher.h:42, from src/mongo/db/repl/oplog_fetcher.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/util/log_and_backoff.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/log_and_backoff.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:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/oplog_fetcher.h:42, from src/mongo/db/repl/oplog_fetcher.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/oplog_fetcher.h:42, from src/mongo/db/repl/oplog_fetcher.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/oplog_fetcher.h:42, from src/mongo/db/repl/oplog_fetcher.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/liblog_and_backoff.a build/opt/mongo/util/log_and_backoff.o Skipping ranlib for thin archive build/opt/mongo/util/liblog_and_backoff.a g++ -o build/opt/mongo/db/repl/abstract_async_component.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/abstract_async_component.cpp g++ -o build/opt/mongo/db/stats/counters.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/stats/counters.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/document_source_sample.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_sample.cpp gcc -o build/opt/third_party/icu4c-57.1/source/common/usc_impl.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/usc_impl.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/logical_time_metadata_hook.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/logical_time_metadata_hook.cpp g++ -o build/opt/mongo/db/storage/storage_debug_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/storage_debug_util.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_sample.h:32, from src/mongo/db/pipeline/document_source_sample.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_sample.h:32, from src/mongo/db/pipeline/document_source_sample.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/liboplog_fetcher.a build/opt/mongo/db/repl/oplog_fetcher.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplog_fetcher.a g++ -o build/opt/mongo/scripting/mozjs/error.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/error.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:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_sample.h:32, from src/mongo/db/pipeline/document_source_sample.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_sample.h:32, from src/mongo/db/pipeline/document_source_sample.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/db/query/datetime/date_time_support.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/timelib-2021.06 -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/datetime/date_time_support.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/storage/storage_debug_util.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/storage/storage_debug_util.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/storage/storage_debug_util.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call g++ -o build/opt/mongo/client/fetcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/fetcher.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:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/storage/storage_debug_util.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/migration_coordinator_document_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/s/migration_coordinator_document_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/client/fetcher.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/client/fetcher.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/client/fetcher.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/client/fetcher.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_u8.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_u8.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C Generating build/opt/mongo/transport/transport_options_gen.cpp g++ -o build/opt/mongo/transport/transport_options_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/transport/transport_options_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/migration_coordinator_document_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/migration_coordinator_document_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/migration_coordinator_document_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/migration_coordinator_document_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/transport/transport_options_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/transport/transport_options_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/transport/transport_options_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/transport/transport_options_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/split_horizon.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/split_horizon.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/errorcode.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/errorcode.cpp g++ -o build/opt/mongo/db/baton.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/baton.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_init.cpp g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_options_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_options_init.cpp g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_server_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_server_status.cpp Generating build/opt/mongo/db/storage/wiredtiger/wiredtiger_global_options_gen.cpp g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_global_options_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/storage/wiredtiger/wiredtiger_global_options_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:42, from src/mongo/db/storage/wiredtiger/wiredtiger_init.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:42, from src/mongo/db/storage/wiredtiger/wiredtiger_init.cpp:42: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/locavailable.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/locavailable.cpp Generating build/opt/mongo/scripting/deadline_monitor_gen.cpp g++ -o build/opt/mongo/scripting/deadline_monitor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/deadline_monitor.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:42, from src/mongo/db/storage/wiredtiger/wiredtiger_init.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:42, from src/mongo/db/storage/wiredtiger/wiredtiger_init.cpp:42: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_server_status.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_server_status.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_server_status.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_server_status.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_server_status.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_server_status.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_server_status.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_server_status.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/scripting/mozjs/cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/cursor.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/wiredtiger/wiredtiger_global_options_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/wiredtiger/wiredtiger_global_options_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/wiredtiger/wiredtiger_global_options_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/wiredtiger/wiredtiger_global_options_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/unwind/dist/src/x86_64/Lget_proc_info.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/x86_64/Lget_proc_info.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/commands/killcursors_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/killcursors_common.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/repl_set_request_votes_args.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_request_votes_args.cpp g++ -o build/opt/mongo/db/s/collection_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/collection_metadata.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:30, from src/mongo/db/commands/killcursors_common.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/wiredtiger/libstorage_wiredtiger.a build/opt/mongo/db/storage/wiredtiger/wiredtiger_init.o build/opt/mongo/db/storage/wiredtiger/wiredtiger_options_init.o build/opt/mongo/db/storage/wiredtiger/wiredtiger_server_status.o build/opt/mongo/db/storage/wiredtiger/wiredtiger_global_options_gen.o Skipping ranlib for thin archive build/opt/mongo/db/storage/wiredtiger/libstorage_wiredtiger.a g++ -o build/opt/mongo/db/exec/skip.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/skip.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:30, from src/mongo/db/commands/killcursors_common.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:30, from src/mongo/db/commands/killcursors_common.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:30, from src/mongo/db/commands/killcursors_common.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/repl/repl_set_request_votes_args.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/repl/repl_set_request_votes_args.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/repl/repl_set_request_votes_args.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/repl/repl_set_request_votes_args.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/exec/skip.h:33, from src/mongo/db/exec/skip.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/conn/conn_dhandle.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/conn/conn_dhandle.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/s/sessions_collection_config_server.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/sessions_collection_config_server.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/killcursors_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/killcursors_cmd.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/s/sessions_collection_config_server.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/resbund_cnv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/resbund_cnv.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/sessions_collection_config_server.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/os_posix/os_pagesize.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_pagesize.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for 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:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/sessions_collection_config_server.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/s/sessions_collection_config_server.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/replication_coordinator_noop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/replication_coordinator_noop.cpp g++ -o build/opt/mongo/db/repl/repl_client_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/repl_client_info.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/killcursors_cmd.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/killcursors_cmd.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/killcursors_cmd.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/killcursors_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnvisci.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnvisci.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/ftdc/compressor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ftdc/compressor.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/librepl_coordinator_interface.a build/opt/mongo/db/repl/always_allow_non_local_writes.o build/opt/mongo/db/repl/repl_client_info.o build/opt/mongo/db/repl/replication_coordinator.o build/opt/mongo/db/repl/replication_coordinator_noop.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librepl_coordinator_interface.a g++ -o build/opt/third_party/boost-1.70.0/libs/system/src/error_code.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/system/src/error_code.cpp ar rcsTD build/opt/third_party/boost-1.70.0/libboost_system.a build/opt/third_party/boost-1.70.0/libs/system/src/error_code.o Skipping ranlib for thin archive build/opt/third_party/boost-1.70.0/libboost_system.a g++ -o build/opt/mongo/shell/linenoise_utf8.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/shell/linenoise_utf8.cpp g++ -o build/opt/mongo/db/exec/limit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/limit.cpp ar rcsTD build/opt/mongo/db/s/libsessions_collection_config_server.a build/opt/mongo/db/s/sessions_collection_config_server.o Skipping ranlib for thin archive build/opt/mongo/db/s/libsessions_collection_config_server.a g++ -o build/opt/third_party/mozjs-60/extract/js/src/jsmath.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/js/src/jsmath.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call 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 -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/request_types/add_shard_to_zone_request_type.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/exec/limit.h:33, from src/mongo/db/exec/limit.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/catalog/type_shard_collection_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/catalog/type_shard_collection_gen.cpp gcc -o build/opt/third_party/wiredtiger/src/config/config_def.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/config/config_def.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/icu4c-57.1/source/common/unames.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unames.cpp gcc -o build/opt/third_party/unwind/dist/src/mi/Lset_cache_size.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/mi/Lset_cache_size.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/decompress/huf_decompress.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/decompress/huf_decompress.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/icu4c-57.1/source/common/dtintrv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/dtintrv.cpp gcc -o build/opt/third_party/wiredtiger/src/btree/bt_slvg.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_slvg.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/s/client/shard_remote.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/client/shard_remote.cpp g++ -o build/opt/mongo/db/s/sharding_migration_critical_section.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/sharding_migration_critical_section.cpp In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jsnum.h:17, from src/third_party/mozjs-60/extract/js/src/jslibmath.h:14, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:27: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jsnum.h:17, from src/third_party/mozjs-60/extract/js/src/jslibmath.h:14, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:27: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsnum.h:17, from src/third_party/mozjs-60/extract/js/src/jslibmath.h:14, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:27: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jslibmath.h:16, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:27: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jslibmath.h:16, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:27: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jslibmath.h:16, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:27: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jslibmath.h:16, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:27: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/catalog/type_shard_collection_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jslibmath.h:16, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:27: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:38: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.h:15, from src/third_party/mozjs-60/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/catalog/type_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/catalog/type_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/catalog/type_shard_collection_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/s/client/shard_remote.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call gcc -o build/opt/third_party/kms-message/src/kms_encrypt_request.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DKMS_MSG_STATIC -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO -Isrc/third_party/kms-message/src src/third_party/kms-message/src/kms_encrypt_request.c src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/biggie/biggie_sorted_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/biggie/biggie_sorted_impl.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/s/client/shard_remote.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/s/client/shard_remote.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/s/client/shard_remote.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/bmpset.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/bmpset.cpp g++ -o build/opt/mongo/s/catalog/type_shard.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/catalog/type_shard.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/storage/biggie/biggie_sorted_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/storage/biggie/biggie_sorted_impl.cpp:40: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/storage/biggie/biggie_sorted_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/storage/biggie/biggie_sorted_impl.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/serv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/serv.cpp g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_fabs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/s_fabs.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/date_time_format_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/date_time_format_parser.cpp g++ -o build/opt/mongo/db/exec/idhack.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/idhack.cpp ar rcsTD build/opt/mongo/s/client/libsharding_client.a build/opt/mongo/s/client/shard_remote.o build/opt/mongo/s/client/num_hosts_targeted_metrics.o build/opt/mongo/s/client/shard_remote_gen.o Skipping ranlib for thin archive build/opt/mongo/s/client/libsharding_client.a g++ -o build/opt/mongo/db/repl/repl_settings_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/repl/repl_settings_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/idhack.h:34, from src/mongo/db/exec/idhack.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/log/log.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/log/log.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/idhack.h:34, from src/mongo/db/exec/idhack.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/platform/strnlen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/platform/strnlen.cpp 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 -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unistr_case_locale.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/idhack.h:34, from src/mongo/db/exec/idhack.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/idhack.h:34, from src/mongo/db/exec/idhack.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/repl_settings_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/third_party/boost-1.70.0/libs/filesystem/src/portability.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/filesystem/src/portability.cpp gcc -o build/opt/third_party/icu4c-57.1/source/common/ubidiln.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ubidiln.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbisetb.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/rbbisetb.cpp g++ -o build/opt/mongo/s/catalog/type_shard_database.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/catalog/type_shard_database.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/repl_settings_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/write_concern_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/write_concern_options.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/repl_settings_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/repl_settings_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbitblb.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/rbbitblb.cpp g++ -o build/opt/mongo/db/retryable_writes_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/retryable_writes_stats.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libwrite_concern_options.a build/opt/mongo/db/write_concern_options.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:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/libwrite_concern_options.a g++ -o build/opt/mongo/util/md5.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/md5.cpp g++ -o build/opt/mongo/db/read_write_concern_provenance.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/read_write_concern_provenance.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/retryable_writes_stats.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/retryable_writes_stats.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/retryable_writes_stats.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/retryable_writes_stats.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libread_write_concern_provenance.a build/opt/mongo/db/read_write_concern_provenance.o build/opt/mongo/db/read_write_concern_provenance_base_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libread_write_concern_provenance.a g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp g++ -o build/opt/mongo/db/query/killcursors_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/killcursors_response.cpp g++ -o build/opt/mongo/transport/transport_layer_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/transport/transport_layer_manager.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_response.h:36, from src/mongo/db/query/killcursors_response.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_response.h:36, from src/mongo/db/query/killcursors_response.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_response.h:36, from src/mongo/db/query/killcursors_response.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_response.h:36, from src/mongo/db/query/killcursors_response.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/process_interface/mongo_process_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/process_interface/mongo_process_interface.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 g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_pow.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/e_pow.cpp src/third_party/mozjs-60/extract/modules/fdlibm/e_pow.cpp: In function 'double fdlibm::pow(double, double)': src/third_party/mozjs-60/extract/modules/fdlibm/e_pow.cpp:131:35: warning: comparison of integer expressions of different signedness: 'int32_t' {aka 'int'} and 'uint32_t' {aka 'unsigned int'} [-Wsign-compare] 131 | if((j<<(52-k))==ly) yisint = 2-(j&1); | ~~~~~~~~~~~^~~~ g++ -o build/opt/mongo/bson/bsonobjbuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/bsonobjbuilder.cpp In file included from src/third_party/mozjs-60/extract/js/src/vm/UnboxedObject-inl.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:62, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jsexn.h:17, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/MapObject.h:11, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jsexn.h:17, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/MapObject.h:11, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jsexn.h:17, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/MapObject.h:11, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSScript]': src/third_party/mozjs-60/extract/js/src/vm/JSScript.cpp:2714:12: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class JSScript' with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/JSFunction.h:17, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:15, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jsexn.h:17, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/MapObject.h:11, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/JSScript.h:889:7: note: 'class JSScript' declared here 889 | class JSScript : public js::gc::TenuredCell | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::wasm::LinkDataTierCacheablePod]': src/third_party/mozjs-60/extract/js/src/wasm/WasmModule.h:50:50: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::wasm::LinkDataTierCacheablePod'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/MemoryMetrics.cpp:26, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:29: src/third_party/mozjs-60/extract/js/src/wasm/WasmModule.h:43:8: note: 'struct js::wasm::LinkDataTierCacheablePod' declared here 43 | struct LinkDataTierCacheablePod | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::ObjectGroup]': src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.cpp:38:12: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::ObjectGroup' with no trivial copy-assignment; use assignment instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:86:7: note: 'class js::ObjectGroup' declared here 86 | class ObjectGroup : public gc::TenuredCell | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::ObjectGroupCompartment]': src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.cpp:1609:12: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::ObjectGroupCompartment' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:583:7: note: 'class js::ObjectGroupCompartment' declared here 583 | class ObjectGroupCompartment | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap >::MapHashPolicy; AllocPolicy = js::TempAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = js::frontend::UsedNameTracker::UsedNameInfo; HashPolicy = js::DefaultHasher; AllocPolicy = js::TempAllocPolicy]' src/third_party/mozjs-60/extract/js/src/frontend/ParseContext.h:167:19: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap >::MapHashPolicy, js::TempAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap >::MapHashPolicy, js::TempAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::SharedScriptData* const; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::SharedScriptData*; HashPolicy = js::ScriptBytecodeHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/JSScript.cpp:2576:16: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::ObjectGroupCompartment::ArrayObjectKey, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::ObjectGroupCompartment::ArrayObjectKey; Value = js::ReadBarriered; HashPolicy = js::ObjectGroupCompartment::ArrayObjectKey; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.cpp:1736:32: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::ObjectGroupCompartment::ArrayObjectKey, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::ObjectGroupCompartment::ArrayObjectKey, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::ObjectGroupCompartment::PlainObjectKey; Value = js::ObjectGroupCompartment::PlainObjectEntry; HashPolicy = js::ObjectGroupCompartment::PlainObjectKey; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.cpp:1744:32: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::ObjectGroupCompartment::AllocationSiteKey, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::ObjectGroupCompartment::AllocationSiteKey; Value = js::ReadBarriered; HashPolicy = js::ObjectGroupCompartment::AllocationSiteKey; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/include/js/GCHashTable.h:536:18: required from 'void JS::WeakCache >::clear() [with Key = js::ObjectGroupCompartment::AllocationSiteKey; Value = js::ReadBarriered; HashPolicy = js::ObjectGroupCompartment::AllocationSiteKey; AllocPolicy = js::SystemAllocPolicy; MapSweepPolicy = JS::DefaultMapSweepPolicy >]' src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.cpp:1734:35: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::ObjectGroupCompartment::AllocationSiteKey, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::ObjectGroupCompartment::AllocationSiteKey, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::ObjectGroupCompartment::NewEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::ObjectGroupCompartment::NewEntry; HashPolicy = js::ObjectGroupCompartment::NewEntry; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/include/js/GCHashTable.h:753:18: required from 'void JS::WeakCache >::clear() [with T = js::ObjectGroupCompartment::NewEntry; HashPolicy = js::ObjectGroupCompartment::NewEntry; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.cpp:1747:31: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.cpp:11: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:74:25: required from 'bool js::detail::InlineTable::switchToTable() [with InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:298:22: required from 'bool js::detail::InlineTable::add(js::detail::InlineTable::AddPtr&, KeyInput&&, Args&& ...) [with KeyInput = JSAtom*&; Args = {js::frontend::DeclaredNameInfo}; InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:535:25: required from 'bool js::InlineMap::add(js::InlineMap::AddPtr&, KeyInput&&, ValueInput&&) [with KeyInput = JSAtom*&; ValueInput = js::frontend::DeclaredNameInfo; Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; long unsigned int InlineEntries = 24; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; js::InlineMap::AddPtr = js::detail::InlineTable, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry, js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>, js::DefaultHasher, js::SystemAllocPolicy, 24>::AddPtr]' src/third_party/mozjs-60/extract/js/src/frontend/ParseContext.h:311:53: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:74:25: required from 'bool js::detail::InlineTable::switchToTable() [with InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:298:22: required from 'bool js::detail::InlineTable::add(js::detail::InlineTable::AddPtr&, KeyInput&&, Args&& ...) [with KeyInput = JSAtom*&; Args = {unsigned int&}; InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:535:25: required from 'bool js::InlineMap::add(js::InlineMap::AddPtr&, KeyInput&&, ValueInput&&) [with KeyInput = JSAtom*&; ValueInput = unsigned int&; Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; long unsigned int InlineEntries = 24; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; js::InlineMap::AddPtr = js::detail::InlineTable, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry, js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>, js::DefaultHasher, js::SystemAllocPolicy, 24>::AddPtr]' src/third_party/mozjs-60/extract/js/src/frontend/BytecodeEmitter.h:382:30: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp g++ -o build/opt/mongo/logger/ramlog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logger/ramlog.cpp g++ -o build/opt/mongo/db/s/transaction_coordinator_curop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/transaction_coordinator_curop.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/stringpiece.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/stringpiece.cpp g++ -o build/opt/mongo/db/pipeline/document_source_count.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_count.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/mongos_process_interface.h:33, from src/mongo/db/s/transaction_coordinator_curop.h:31, from src/mongo/db/s/transaction_coordinator_curop.cpp:29: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/db/pipeline/process_interface/mongos_process_interface.h:33, from src/mongo/db/s/transaction_coordinator_curop.h:31, from src/mongo/db/s/transaction_coordinator_curop.cpp:29: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/db/pipeline/process_interface/mongos_process_interface.h:33, from src/mongo/db/s/transaction_coordinator_curop.h:31, from src/mongo/db/s/transaction_coordinator_curop.cpp:29: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_count.h:32, from src/mongo/db/pipeline/document_source_count.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/mongos_process_interface.h:33, from src/mongo/db/s/transaction_coordinator_curop.h:31, from src/mongo/db/s/transaction_coordinator_curop.cpp:29: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_count.h:32, from src/mongo/db/pipeline/document_source_count.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_count.h:32, from src/mongo/db/pipeline/document_source_count.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:66, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:13, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_count.h:32, from src/mongo/db/pipeline/document_source_count.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:13, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:13, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:13, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:13, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:13, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:13, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jsexn.h:17, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/MapObject.h:11, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:25, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jsexn.h:17, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/MapObject.h:11, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:25, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/extract/js/src/vm/BooleanObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:61, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/extract/js/src/vm/BooleanObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:61, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h: In instantiation of 'T* js::jit::JitAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = JS::Value; Value = unsigned int; HashPolicy = js::jit::LIRGraph::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/jit/LIR.h:1893:37: required from here src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:101:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 101 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/SelfHosting.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/mongos_process_interface.h:33, from src/mongo/db/s/transaction_coordinator_curop.h:31, from src/mongo/db/s/transaction_coordinator_curop.cpp:29: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/uset.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uset.cpp Generating build/opt/mongo/db/read_concern_mongod_gen.cpp g++ -o build/opt/mongo/db/read_concern_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/read_concern_mongod.cpp g++ -o build/opt/mongo/db/read_concern_mongod_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/read_concern_mongod_gen.cpp gcc -o build/opt/third_party/wiredtiger/src/evict/evict_stat.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/evict/evict_stat.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/opt/mongo/db/catalog/libcommit_quorum_idl.a build/opt/mongo/db/catalog/commit_quorum_gen.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libcommit_quorum_idl.a g++ -o build/opt/mongo/db/ftdc/block_compressor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ftdc/block_compressor.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/patternprops.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/patternprops.cpp Generating build/opt/mongo/db/auth/auth_options_gen.cpp g++ -o build/opt/mongo/db/auth/auth_options_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/auth/auth_options_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/read_concern_mongod.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/read_concern_mongod_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/read_concern_mongod.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/read_concern_mongod_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/read_concern_mongod.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/read_concern_mongod.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/read_concern_mongod_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/read_concern_mongod_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/timelib-2021.06/parse_tz.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/timelib-2021.06 src/third_party/timelib-2021.06/parse_tz.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/logv2/text_formatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logv2/text_formatter.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/auth_options_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/auth_options_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/auth_options_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/auth_options_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/rpc/topology_version_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/rpc/topology_version_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_size_storer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_size_storer.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/rpc/topology_version_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/rpc/topology_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/rpc/topology_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/rpc/topology_version_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call Generating build/opt/mongo/db/free_mon/free_mon_mongod_gen.cpp g++ -o build/opt/mongo/db/free_mon/free_mon_mongod_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/free_mon/free_mon_mongod_gen.cpp ar rcsTD build/opt/mongo/db/libread_concern_d_impl.a build/opt/mongo/db/read_concern_mongod.o build/opt/mongo/db/read_concern_mongod_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libread_concern_d_impl.a g++ -o build/opt/mongo/db/session_catalog_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/session_catalog_mongod.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_registry.h:36, from src/mongo/db/free_mon/free_mon_mongod.h:34, from build/opt/mongo/db/free_mon/free_mon_mongod_gen.h:21, from build/opt/mongo/db/free_mon/free_mon_mongod_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_registry.h:36, from src/mongo/db/free_mon/free_mon_mongod.h:34, from build/opt/mongo/db/free_mon/free_mon_mongod_gen.h:21, from build/opt/mongo/db/free_mon/free_mon_mongod_gen.cpp:9: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/util/signal_handlers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/signal_handlers.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_registry.h:36, from src/mongo/db/free_mon/free_mon_mongod.h:34, from build/opt/mongo/db/free_mon/free_mon_mongod_gen.h:21, from build/opt/mongo/db/free_mon/free_mon_mongod_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_registry.h:36, from src/mongo/db/free_mon/free_mon_mongod.h:34, from build/opt/mongo/db/free_mon/free_mon_mongod_gen.h:21, from build/opt/mongo/db/free_mon/free_mon_mongod_gen.cpp:9: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/session_catalog_mongod.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/session_catalog_mongod.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/session_catalog_mongod.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/session_catalog_mongod.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/field_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/field_parser.cpp g++ -o build/opt/mongo/db/field_ref_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/field_ref_set.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/keypattern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/keypattern.cpp g++ -o build/opt/mongo/db/commands/sharded_index_consistency_server_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/sharded_index_consistency_server_status.cpp 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 g++ -o build/opt/mongo/db/commands/shutdown_d.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/shutdown_d.cpp g++ -o build/opt/mongo/db/commands/top_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/top_command.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/commands/sharded_index_consistency_server_status.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/commands/sharded_index_consistency_server_status.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/shutdown.h:34, from src/mongo/db/commands/shutdown_d.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/commands/sharded_index_consistency_server_status.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/commands/sharded_index_consistency_server_status.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/shutdown.h:34, from src/mongo/db/commands/shutdown_d.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/top_command.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/shutdown.h:34, from src/mongo/db/commands/shutdown_d.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/shutdown.h:34, from src/mongo/db/commands/shutdown_d.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/top_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/top_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/top_command.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/resize_oplog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/resize_oplog.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/db/commands/set_index_commit_quorum_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/resize_oplog.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/set_index_commit_quorum_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/set_index_commit_quorum_command.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/resize_oplog.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/resize_oplog.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/resize_oplog.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/oplog_note.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/oplog_note.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/set_index_commit_quorum_command.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/map_reduce_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/map_reduce_command.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/set_index_commit_quorum_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/set_index_commit_quorum_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/set_index_commit_quorum_command.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/oplog_note.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/oplog_note.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/oplog_note.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/oplog_note.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/map_reduce_command.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/map_reduce_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/map_reduce_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/map_reduce_command.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/snapshot_management.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/snapshot_management.cpp Generating build/opt/mongo/db/commands/internal_rename_if_options_and_indexes_match_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/internal_rename_if_options_and_indexes_match_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands/internal_rename_if_options_and_indexes_match_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/snapshot_management.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/snapshot_management.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/snapshot_management.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/snapshot_management.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/internal_rename_if_options_and_indexes_match_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/driverHelpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/driverHelpers.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/internal_rename_if_options_and_indexes_match_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/apply_ops_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/apply_ops_cmd.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/internal_rename_if_options_and_indexes_match_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/internal_rename_if_options_and_indexes_match_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/driverHelpers.cpp:44: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/driverHelpers.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/driverHelpers.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/driverHelpers.cpp:44: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/commands/apply_ops_cmd.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/commands/apply_ops_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/commands/apply_ops_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/commands/apply_ops_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/vote_commit_index_build_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands/vote_commit_index_build_gen.cpp g++ -o build/opt/mongo/db/commands/compact.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/compact.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/vote_commit_index_build_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/vote_commit_index_build_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/vote_commit_index_build_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/vote_commit_index_build_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/compact.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/compact.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/mr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/mr.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/compact.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/compact.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/oplog_application_checks.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/oplog_application_checks.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/mr_common.h:35, from src/mongo/db/commands/mr.h:36, from src/mongo/db/commands/mr.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/mr_common.h:35, from src/mongo/db/commands/mr.h:36, from src/mongo/db/commands/mr.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/mr_common.h:35, from src/mongo/db/commands/mr.h:36, from src/mongo/db/commands/mr.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/mr_common.h:35, from src/mongo/db/commands/mr.h:36, from src/mongo/db/commands/mr.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/rwc_defaults_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/rwc_defaults_commands.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/commands/oplog_application_checks.cpp:31: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/commands/oplog_application_checks.cpp:31: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/commands/oplog_application_checks.cpp:31: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/commands/oplog_application_checks.cpp:31: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/rwc_defaults_commands.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/dbhash.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/dbhash.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/rwc_defaults_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/rwc_defaults_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/rwc_defaults_commands.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/dbhash.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/dbhash.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/dbhash.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/dbhash.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/txn_cmds.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/txn_cmds.cpp g++ -o build/opt/mongo/db/commands/dbcheck.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/dbcheck.cpp g++ -o build/opt/mongo/db/commands/map_reduce_finish_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/map_reduce_finish_command.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/txn_cmds.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/txn_cmds.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/txn_cmds.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/txn_cmds.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/map_reduce_finish_command.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/commands/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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/map_reduce_finish_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/commands/dbcheck.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/map_reduce_finish_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/map_reduce_finish_command.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/commands/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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/commands/dbcheck.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/user_management_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/user_management_commands.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/user_management_commands.cpp:59: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/user_management_commands.cpp:59: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/user_management_commands.cpp:59: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/user_management_commands.cpp:59: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/collection_to_capped.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/collection_to_capped.cpp g++ -o build/opt/mongo/db/commands/internal_rename_if_options_and_indexes_match_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/internal_rename_if_options_and_indexes_match_cmd.cpp src/mongo/db/commands/user_management_commands.cpp: In function 'mongo::StatusWith mongo::{anonymous}::requireWritableAuthSchema28SCRAM(mongo::OperationContext*, mongo::AuthorizationManager*)': src/mongo/db/commands/user_management_commands.cpp:626:21: warning: redundant move in return statement [-Wredundant-move] 626 | return std::move(lk); | ~~~~~~~~~^~~~ src/mongo/db/commands/user_management_commands.cpp:626:21: note: remove 'std::move' call src/mongo/db/commands/user_management_commands.cpp: In function 'mongo::StatusWith mongo::{anonymous}::requireReadableAuthSchema26Upgrade(mongo::OperationContext*, mongo::AuthorizationManager*)': src/mongo/db/commands/user_management_commands.cpp:658:21: warning: redundant move in return statement [-Wredundant-move] 658 | return std::move(lk); | ~~~~~~~~~^~~~ src/mongo/db/commands/user_management_commands.cpp:658:21: note: remove 'std::move' call g++ -o build/opt/mongo/util/read_through_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/read_through_cache.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/collection_to_capped.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/internal_rename_if_options_and_indexes_match_cmd.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/collection_to_capped.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/collection_to_capped.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/collection_to_capped.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/internal_rename_if_options_and_indexes_match_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/internal_rename_if_options_and_indexes_match_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/internal_rename_if_options_and_indexes_match_cmd.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/user_management_commands.cpp:59: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/sync_source_feedback.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/sync_source_feedback.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:37, from src/mongo/db/repl/sync_source_feedback.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:37, from src/mongo/db/repl/sync_source_feedback.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/noop_writer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/noop_writer.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:37, from src/mongo/db/repl/sync_source_feedback.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:37, from src/mongo/db/repl/sync_source_feedback.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/replication_coordinator_external_state_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/replication_coordinator_external_state_impl.cpp ar rcsTD build/opt/mongo/db/commands/libmongod.a build/opt/mongo/db/commands/apply_ops_cmd.o build/opt/mongo/db/commands/collection_to_capped.o build/opt/mongo/db/commands/compact.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/driverHelpers.o build/opt/mongo/db/commands/haystack.o build/opt/mongo/db/commands/internal_rename_if_options_and_indexes_match_cmd.o build/opt/mongo/db/commands/map_reduce_command.o build/opt/mongo/db/commands/map_reduce_finish_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/read_write_concern_defaults_server_status.o build/opt/mongo/db/commands/resize_oplog.o build/opt/mongo/db/commands/resize_oplog_gen.o build/opt/mongo/db/commands/rwc_defaults_commands.o build/opt/mongo/db/commands/set_feature_compatibility_version_command.o build/opt/mongo/db/commands/set_index_commit_quorum_command.o build/opt/mongo/db/commands/sharded_index_consistency_server_status.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/txn_cmds.o build/opt/mongo/db/commands/user_management_commands.o build/opt/mongo/db/commands/vote_commit_index_build_command.o build/opt/mongo/db/commands/internal_rename_if_options_and_indexes_match_gen.o build/opt/mongo/db/commands/vote_commit_index_build_gen.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libmongod.a g++ -o build/opt/mongo/db/query/internal_plans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/internal_plans.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/repl/noop_writer.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/repl/noop_writer.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/repl/noop_writer.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/repl/noop_writer.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/delete.h:32, from src/mongo/db/query/internal_plans.h:33, from src/mongo/db/query/internal_plans.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/delete.h:32, from src/mongo/db/query/internal_plans.h:33, from src/mongo/db/query/internal_plans.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:37, from src/mongo/db/repl/replication_coordinator_external_state_impl.h:35, from src/mongo/db/repl/replication_coordinator_external_state_impl.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/delete.h:32, from src/mongo/db/query/internal_plans.h:33, from src/mongo/db/query/internal_plans.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:37, from src/mongo/db/repl/replication_coordinator_external_state_impl.h:35, from src/mongo/db/repl/replication_coordinator_external_state_impl.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/delete.h:32, from src/mongo/db/query/internal_plans.h:33, from src/mongo/db/query/internal_plans.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:37, from src/mongo/db/repl/replication_coordinator_external_state_impl.h:35, from src/mongo/db/repl/replication_coordinator_external_state_impl.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:37, from src/mongo/db/repl/replication_coordinator_external_state_impl.h:35, from src/mongo/db/repl/replication_coordinator_external_state_impl.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/support/thread_group.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/thread_group.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/conn/conn_capacity.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/conn/conn_capacity.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/opt/mongo/db/catalog/libdatabase_holder.a build/opt/mongo/db/catalog/database_holder.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libdatabase_holder.a g++ -o build/opt/mongo/util/net/openssl_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/openssl_init.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/process_interface/shardsvr_process_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/process_interface/shardsvr_process_interface.cpp g++ -o build/opt/mongo/client/remote_command_targeter_factory_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/remote_command_targeter_factory_impl.cpp g++ -o build/opt/mongo/util/shell_exec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/shell_exec.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/support/scratch.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/scratch.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/shardsvr_process_interface.h:33, from src/mongo/db/pipeline/process_interface/shardsvr_process_interface.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/db/pipeline/process_interface/shardsvr_process_interface.h:33, from src/mongo/db/pipeline/process_interface/shardsvr_process_interface.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_snapshot_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_snapshot_manager.cpp Generating build/opt/mongo/db/storage/wiredtiger/oplog_stone_parameters_gen.cpp g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_record_store.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_record_store.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:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/db/pipeline/process_interface/shardsvr_process_interface.h:33, from src/mongo/db/pipeline/process_interface/shardsvr_process_interface.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/shardsvr_process_interface.h:33, from src/mongo/db/pipeline/process_interface/shardsvr_process_interface.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_record_store.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp:47: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_record_store.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp:47: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.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 g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_cursor.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/process_interface/shardsvr_process_interface.h:33, from src/mongo/db/pipeline/process_interface/shardsvr_process_interface.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp:60: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.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:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp:60: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_oplog_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_oplog_manager.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp:60: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp:60: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp: In member function 'virtual std::unique_ptr mongo::WiredTigerKVEngine::getGroupedRecordStore(mongo::OperationContext*, mongo::StringData, mongo::StringData, const mongo::CollectionOptions&, mongo::KVPrefix)': src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp:1571:21: warning: redundant move in return statement [-Wredundant-move] 1571 | return std::move(ret); | ~~~~~~~~~^~~~~ src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp:1571:21: note: remove 'std::move' call src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp: In member function 'virtual std::unique_ptr mongo::WiredTigerKVEngine::makeTemporaryRecordStore(mongo::OperationContext*, mongo::StringData)': src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp:1670:21: warning: redundant move in return statement [-Wredundant-move] 1670 | return std::move(rs); | ~~~~~~~~~^~~~ src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp:1670:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.cpp:40: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/wiredtiger/oplog_stones_server_status_section.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/oplog_stones_server_status_section.cpp g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_index.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp:60: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/storage/wiredtiger/oplog_stones_server_status_section.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/storage/wiredtiger/oplog_stones_server_status_section.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_index.h:39, from src/mongo/db/storage/wiredtiger/wiredtiger_index.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_index.h:39, from src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/storage/wiredtiger/oplog_stones_server_status_section.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/storage/wiredtiger/oplog_stones_server_status_section.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_index.h:39, from src/mongo/db/storage/wiredtiger/wiredtiger_index.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_index.h:39, from src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_session_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.cpp g++ -o build/opt/mongo/db/repl/bson_extract_optime.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/bson_extract_optime.cpp g++ -o build/opt/mongo/db/repl/optime.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/optime.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_session_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_session_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/drop_pending_collection_reaper.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/drop_pending_collection_reaper.cpp 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 g++ -o build/opt/mongo/s/request_types/split_chunk_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/request_types/split_chunk_request_type.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/drop_pending_collection_reaper.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/checksum/x86/crc32-x86-alt.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/checksum/x86/crc32-x86-alt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/putil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/putil.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/drop_pending_collection_reaper.cpp:41: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/block/block_ext.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/block/block_ext.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/decompress/zstd_decompress.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/decompress/zstd_decompress.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/drop_pending_collection_reaper.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/drop_pending_collection_reaper.cpp:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_floor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/s_floor.cpp src/third_party/mozjs-60/extract/modules/fdlibm/s_floor.cpp: In function 'double fdlibm::floor(double)': src/third_party/mozjs-60/extract/modules/fdlibm/s_floor.cpp:64:29: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int32_t' {aka 'int'} [-Wsign-compare] 64 | if(j mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/matcher/expression_with_placeholder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/expression_with_placeholder.cpp In file included from src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.h:35, from src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.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:85:25: warning: redundant move in return statement [-Wredundant-move] 85 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:85: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:140:25: warning: redundant move in return statement [-Wredundant-move] 140 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:140: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:177:25: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:177:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/wiredtiger/libstorage_wiredtiger_core.a build/opt/mongo/db/storage/wiredtiger/oplog_stones_server_status_section.o build/opt/mongo/db/storage/wiredtiger/wiredtiger_begin_transaction_block.o build/opt/mongo/db/storage/wiredtiger/wiredtiger_cursor.o build/opt/mongo/db/storage/wiredtiger/wiredtiger_global_options.o build/opt/mongo/db/storage/wiredtiger/wiredtiger_index.o build/opt/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.o build/opt/mongo/db/storage/wiredtiger/wiredtiger_oplog_manager.o build/opt/mongo/db/storage/wiredtiger/wiredtiger_parameters.o build/opt/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.o build/opt/mongo/db/storage/wiredtiger/wiredtiger_record_store.o build/opt/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.o build/opt/mongo/db/storage/wiredtiger/wiredtiger_session_cache.o build/opt/mongo/db/storage/wiredtiger/wiredtiger_snapshot_manager.o build/opt/mongo/db/storage/wiredtiger/wiredtiger_size_storer.o build/opt/mongo/db/storage/wiredtiger/wiredtiger_util.o build/opt/mongo/db/storage/wiredtiger/wiredtiger_parameters_gen.o Skipping ranlib for thin archive build/opt/mongo/db/storage/wiredtiger/libstorage_wiredtiger_core.a gcc -o build/opt/third_party/icu4c-57.1/source/common/uarrsort.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uarrsort.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/dbdirectclient.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/dbdirectclient.cpp g++ -o build/opt/mongo/db/exec/multi_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/multi_iterator.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_with_placeholder.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/expression_with_placeholder.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/expression_with_placeholder.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/dbdirectclient.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/dbdirectclient.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/catalog/index_build_block.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/index_build_block.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/multi_iterator.h:35, from src/mongo/db/exec/multi_iterator.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/multi_iterator.h:35, from src/mongo/db/exec/multi_iterator.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/dbdirectclient.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/dbdirectclient.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/multi_iterator.h:35, from src/mongo/db/exec/multi_iterator.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/multi_iterator.h:35, from src/mongo/db/exec/multi_iterator.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/bson/bson_validate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/bson_validate.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/index_build_block.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/index_build_block.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/index_build_block.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/index_build_block.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/caniter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/caniter.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/format_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/format_parser.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/client/libfetcher.a build/opt/mongo/client/fetcher.o Skipping ranlib for thin archive build/opt/mongo/client/libfetcher.a g++ -o build/opt/mongo/db/auth/authz_session_external_state_d.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/authz_session_external_state_d.cpp g++ -o build/opt/mongo/db/pipeline/accumulator_sum.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_sum.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:145:5: required from 'struct boost::Assignable' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:3: required from 'struct boost_concepts::ReadableIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:3: required from 'struct boost_concepts::ReadableIteratorConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost_concepts::ReadableIteratorConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:34:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const char*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = char]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:137:75: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Assignable]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: required from 'struct boost::CopyConstructible' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:3: required from 'struct boost_concepts::ReadableIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:3: required from 'struct boost_concepts::ReadableIteratorConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost_concepts::ReadableIteratorConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:34:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const char*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = char]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:137:75: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::CopyConstructible]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:48:7: required from 'struct boost_concepts::ReadableIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:3: required from 'struct boost_concepts::ReadableIteratorConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost_concepts::ReadableIteratorConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:34:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const char*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = char]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:137:75: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost_concepts::ReadableIterator]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost_concepts::ReadableIteratorConcept]': src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:34:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const char*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = char]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:137:75: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/preprocessor/control/while.hpp:17, from src/third_party/boost-1.70.0/boost/preprocessor/arithmetic/add.hpp:20, from src/third_party/boost-1.70.0/boost/phoenix/core/limits.hpp:12, from src/third_party/boost-1.70.0/boost/spirit/include/phoenix_limits.hpp:11, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:17: note: in a call to non-static member function 'boost_concepts::ReadableIteratorConcept::~ReadableIteratorConcept()' 40 | BOOST_concept(ReadableIterator,(Iterator)) | ^~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/preprocessor/cat.hpp:29:34: note: in definition of macro 'BOOST_PP_CAT_I' 29 | # define BOOST_PP_CAT_I(a, b) a ## b | ^ src/third_party/boost-1.70.0/boost/concept/detail/concept_def.hpp:23:12: note: in expansion of macro 'BOOST_PP_CAT' 23 | struct BOOST_PP_CAT(name,Concept) \ | ^~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:3: note: in expansion of macro 'BOOST_concept' 40 | BOOST_concept(ReadableIterator,(Iterator)) | ^~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:114:7: [ skipping 5 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:35:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const char*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = char]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:137:75: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:114:7: required from 'struct boost_concepts::IncrementableIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:129:3: required from 'struct boost_concepts::SinglePassIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversal' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversalConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost_concepts::ForwardTraversalConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:35:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const char*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = char]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:137:75: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::incrementable_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:120:7: required from 'struct boost_concepts::IncrementableIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:129:3: required from 'struct boost_concepts::SinglePassIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversal' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversalConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost_concepts::ForwardTraversalConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:35:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const char*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = char]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:137:75: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost_concepts::IncrementableIterator]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: required from 'struct boost::EqualityComparable' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:129:3: required from 'struct boost_concepts::SinglePassIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversal' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversalConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost_concepts::ForwardTraversalConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:35:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const char*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = char]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:137:75: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::EqualityComparable]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:134:7: [ skipping 4 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:35:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const char*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = char]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:137:75: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:134:7: required from 'struct boost_concepts::SinglePassIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversal' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversalConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost_concepts::ForwardTraversalConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:35:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const char*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = char]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:137:75: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::single_pass_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:137:5: required from 'struct boost::DefaultConstructible' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversal' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversalConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost_concepts::ForwardTraversalConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:35:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const char*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = char]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:137:75: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::DefaultConstructible]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:150:7: [ skipping 3 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:35:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const char*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = char]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:137:75: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:150:7: required from 'struct boost_concepts::ForwardTraversal' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversalConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost_concepts::ForwardTraversalConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:35:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const char*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = char]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:137:75: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::forward_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost_concepts::ForwardTraversalConcept]': src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:35:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const char*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = char]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:137:75: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/preprocessor/control/while.hpp:17, from src/third_party/boost-1.70.0/boost/preprocessor/arithmetic/add.hpp:20, from src/third_party/boost-1.70.0/boost/phoenix/core/limits.hpp:12, from src/third_party/boost-1.70.0/boost/spirit/include/phoenix_limits.hpp:11, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:17: note: in a call to non-static member function 'boost_concepts::ForwardTraversalConcept::~ForwardTraversalConcept()' 141 | BOOST_concept(ForwardTraversal,(Iterator)) | ^~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/preprocessor/cat.hpp:29:34: note: in definition of macro 'BOOST_PP_CAT_I' 29 | # define BOOST_PP_CAT_I(a, b) a ## b | ^ src/third_party/boost-1.70.0/boost/concept/detail/concept_def.hpp:23:12: note: in expansion of macro 'BOOST_PP_CAT' 23 | struct BOOST_PP_CAT(name,Concept) \ | ^~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: note: in expansion of macro 'BOOST_concept' 141 | BOOST_concept(ForwardTraversal,(Iterator)) | ^~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:145:5: required from 'struct boost::Assignable' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:3: required from 'struct boost_concepts::ReadableIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:3: required from 'struct boost_concepts::ReadableIteratorConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost_concepts::ReadableIteratorConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:34:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const wchar_t*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = wchar_t]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:144:84: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Assignable]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: required from 'struct boost::CopyConstructible' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:3: required from 'struct boost_concepts::ReadableIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:3: required from 'struct boost_concepts::ReadableIteratorConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost_concepts::ReadableIteratorConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:34:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const wchar_t*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = wchar_t]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:144:84: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::CopyConstructible]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:48:7: required from 'struct boost_concepts::ReadableIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:3: required from 'struct boost_concepts::ReadableIteratorConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost_concepts::ReadableIteratorConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:34:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const wchar_t*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = wchar_t]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:144:84: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost_concepts::ReadableIterator]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost_concepts::ReadableIteratorConcept]': src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:34:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const wchar_t*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = wchar_t]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:144:84: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/preprocessor/control/while.hpp:17, from src/third_party/boost-1.70.0/boost/preprocessor/arithmetic/add.hpp:20, from src/third_party/boost-1.70.0/boost/phoenix/core/limits.hpp:12, from src/third_party/boost-1.70.0/boost/spirit/include/phoenix_limits.hpp:11, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:17: note: in a call to non-static member function 'boost_concepts::ReadableIteratorConcept::~ReadableIteratorConcept()' 40 | BOOST_concept(ReadableIterator,(Iterator)) | ^~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/preprocessor/cat.hpp:29:34: note: in definition of macro 'BOOST_PP_CAT_I' 29 | # define BOOST_PP_CAT_I(a, b) a ## b | ^ src/third_party/boost-1.70.0/boost/concept/detail/concept_def.hpp:23:12: note: in expansion of macro 'BOOST_PP_CAT' 23 | struct BOOST_PP_CAT(name,Concept) \ | ^~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:3: note: in expansion of macro 'BOOST_concept' 40 | BOOST_concept(ReadableIterator,(Iterator)) | ^~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:120:7: required from 'struct boost_concepts::IncrementableIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:129:3: required from 'struct boost_concepts::SinglePassIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversal' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversalConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost_concepts::ForwardTraversalConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:35:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const wchar_t*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = wchar_t]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:144:84: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost_concepts::IncrementableIterator]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: required from 'struct boost::EqualityComparable' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:129:3: required from 'struct boost_concepts::SinglePassIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversal' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversalConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost_concepts::ForwardTraversalConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:35:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const wchar_t*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = wchar_t]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:144:84: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::EqualityComparable]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:137:5: required from 'struct boost::DefaultConstructible' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversal' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversalConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost_concepts::ForwardTraversalConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:35:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const wchar_t*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = wchar_t]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:144:84: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::DefaultConstructible]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost_concepts::ForwardTraversalConcept]': src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:35:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const wchar_t*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = wchar_t]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:144:84: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/preprocessor/control/while.hpp:17, from src/third_party/boost-1.70.0/boost/preprocessor/arithmetic/add.hpp:20, from src/third_party/boost-1.70.0/boost/phoenix/core/limits.hpp:12, from src/third_party/boost-1.70.0/boost/spirit/include/phoenix_limits.hpp:11, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:17: note: in a call to non-static member function 'boost_concepts::ForwardTraversalConcept::~ForwardTraversalConcept()' 141 | BOOST_concept(ForwardTraversal,(Iterator)) | ^~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/preprocessor/cat.hpp:29:34: note: in definition of macro 'BOOST_PP_CAT_I' 29 | # define BOOST_PP_CAT_I(a, b) a ## b | ^ src/third_party/boost-1.70.0/boost/concept/detail/concept_def.hpp:23:12: note: in expansion of macro 'BOOST_PP_CAT' 23 | struct BOOST_PP_CAT(name,Concept) \ | ^~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: note: in expansion of macro 'BOOST_concept' 141 | BOOST_concept(ForwardTraversal,(Iterator)) | ^~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/proto/functional/range/size.hpp:12, from src/third_party/boost-1.70.0/boost/proto/functional/range.hpp:17, from src/third_party/boost-1.70.0/boost/proto/functional.hpp:14, from src/third_party/boost-1.70.0/boost/proto/proto.hpp:16, from src/third_party/boost-1.70.0/boost/spirit/home/support/meta_compiler.hpp:19, from src/third_party/boost-1.70.0/boost/spirit/home/qi/domain.hpp:15, from src/third_party/boost-1.70.0/boost/spirit/home/qi/detail/enable_lit.hpp:13, from src/third_party/boost-1.70.0/boost/spirit/home/qi/numeric/uint.hpp:17, from src/third_party/boost-1.70.0/boost/spirit/include/qi_uint.hpp:16, from src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:23: src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Assignable]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:145:5: required from 'struct boost::Assignable' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:3: required from 'struct boost_concepts::ReadableIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:3: required from 'struct boost_concepts::ReadableIteratorConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost_concepts::ReadableIteratorConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:34:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const char*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = char]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:137:75: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Assignable::~Assignable() [with TT = const char*]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:145:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 145 | BOOST_CONCEPT_USAGE(Assignable) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::CopyConstructible]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: required from 'struct boost::CopyConstructible' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:3: required from 'struct boost_concepts::ReadableIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:3: required from 'struct boost_concepts::ReadableIteratorConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost_concepts::ReadableIteratorConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:34:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const char*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = char]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:137:75: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::CopyConstructible::~CopyConstructible() [with TT = const char*]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 167 | BOOST_CONCEPT_USAGE(CopyConstructible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost_concepts::ReadableIterator]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:48:7: required from 'struct boost_concepts::ReadableIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:3: required from 'struct boost_concepts::ReadableIteratorConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost_concepts::ReadableIteratorConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:34:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const char*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = char]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:137:75: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost_concepts::ReadableIterator::~ReadableIterator() [with Iterator = const char*]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:48:7: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 48 | BOOST_CONCEPT_USAGE(ReadableIterator) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 6 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:35:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const char*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = char]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:137:75: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::incrementable_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost_concepts::IncrementableIterator]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:120:7: required from 'struct boost_concepts::IncrementableIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:129:3: required from 'struct boost_concepts::SinglePassIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversal' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:35:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const char*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = char]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:137:75: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost_concepts::IncrementableIterator::~IncrementableIterator() [with Iterator = const char*]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:120:7: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 120 | BOOST_CONCEPT_USAGE(IncrementableIterator) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::EqualityComparable]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: required from 'struct boost::EqualityComparable' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:129:3: required from 'struct boost_concepts::SinglePassIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversal' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:35:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const char*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = char]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:137:75: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::EqualityComparable::~EqualityComparable() [with TT = const char*]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 233 | BOOST_CONCEPT_USAGE(EqualityComparable) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 5 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:35:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const char*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = char]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:137:75: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::single_pass_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::DefaultConstructible]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:137:5: required from 'struct boost::DefaultConstructible' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversal' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversalConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost_concepts::ForwardTraversalConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:35:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const char*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = char]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:137:75: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::DefaultConstructible::~DefaultConstructible() [with TT = const char*]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:137:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 137 | BOOST_CONCEPT_USAGE(DefaultConstructible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 4 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:35:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const char*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = char]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:137:75: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::forward_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Assignable]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:145:5: required from 'struct boost::Assignable' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:3: required from 'struct boost_concepts::ReadableIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:3: required from 'struct boost_concepts::ReadableIteratorConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost_concepts::ReadableIteratorConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:34:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const wchar_t*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = wchar_t]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:144:84: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Assignable::~Assignable() [with TT = const wchar_t*]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:145:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 145 | BOOST_CONCEPT_USAGE(Assignable) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::CopyConstructible]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: required from 'struct boost::CopyConstructible' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:3: required from 'struct boost_concepts::ReadableIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:3: required from 'struct boost_concepts::ReadableIteratorConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost_concepts::ReadableIteratorConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:34:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const wchar_t*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = wchar_t]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:144:84: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::CopyConstructible::~CopyConstructible() [with TT = const wchar_t*]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 167 | BOOST_CONCEPT_USAGE(CopyConstructible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost_concepts::ReadableIterator]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:48:7: required from 'struct boost_concepts::ReadableIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:40:3: required from 'struct boost_concepts::ReadableIteratorConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost_concepts::ReadableIteratorConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:34:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const wchar_t*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = wchar_t]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:144:84: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost_concepts::ReadableIterator::~ReadableIterator() [with Iterator = const wchar_t*]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:48:7: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 48 | BOOST_CONCEPT_USAGE(ReadableIterator) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost_concepts::IncrementableIterator]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:120:7: required from 'struct boost_concepts::IncrementableIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:129:3: required from 'struct boost_concepts::SinglePassIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversal' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:35:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const wchar_t*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = wchar_t]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:144:84: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost_concepts::IncrementableIterator::~IncrementableIterator() [with Iterator = const wchar_t*]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:120:7: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 120 | BOOST_CONCEPT_USAGE(IncrementableIterator) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::EqualityComparable]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: required from 'struct boost::EqualityComparable' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:129:3: required from 'struct boost_concepts::SinglePassIterator' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversal' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:35:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const wchar_t*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = wchar_t]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:144:84: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::EqualityComparable::~EqualityComparable() [with TT = const wchar_t*]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 233 | BOOST_CONCEPT_USAGE(EqualityComparable) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::DefaultConstructible]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:137:5: required from 'struct boost::DefaultConstructible' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversal' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:141:3: required from 'struct boost_concepts::ForwardTraversalConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost_concepts::ForwardTraversalConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/spirit/home/qi/parse.hpp:35:9: required from 'bool boost::spirit::qi::parse(Iterator&, Iterator, const Expr&, Attr&) [with Iterator = const wchar_t*; Expr = boost::spirit::terminal; Attr = unsigned int]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:84:30: required from 'boost::log::v2s_mt_posix::aux::format_description boost::log::v2s_mt_posix::aux::parse_format(const CharT*, const CharT*) [with CharT = wchar_t]' src/third_party/boost-1.70.0/libs/log/src/format_parser.cpp:144:84: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::DefaultConstructible::~DefaultConstructible() [with TT = const wchar_t*]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:137:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 137 | BOOST_CONCEPT_USAGE(DefaultConstructible) { | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/expression.h:47, from src/mongo/db/pipeline/accumulator.h:43, from src/mongo/db/pipeline/accumulator_sum.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/watchdog/watchdog_mongod_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/watchdog/watchdog_mongod_gen.cpp In file included from src/mongo/db/pipeline/accumulator.h:43, from src/mongo/db/pipeline/accumulator_sum.cpp:35: src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionFromAccumulator]': src/mongo/db/pipeline/accumulator_sum.cpp:47:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(expr); | ^ src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call 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 g++ -o build/opt/mongo/db/repl/member_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/member_data.cpp g++ -o build/opt/mongo/db/index/duplicate_key_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index/duplicate_key_tracker.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/watchdog/watchdog_mongod_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/watchdog/watchdog_mongod_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/cloner_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/cloner_gen.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/watchdog/watchdog_mongod_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/watchdog/watchdog_mongod_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/index/duplicate_key_tracker.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libmember_data.a build/opt/mongo/db/repl/member_data.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libmember_data.a Generating build/opt/mongo/db/server_options_nongeneral_gen.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/server_options_nongeneral_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/server_options_nongeneral_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/index/duplicate_key_tracker.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/index/duplicate_key_tracker.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/index/duplicate_key_tracker.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/cloner_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/cloner_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/cloner_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/cloner_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/server_options_nongeneral_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call Generating build/opt/mongo/db/cluster_auth_mode_option_gen.cpp g++ -o build/opt/mongo/db/cluster_auth_mode_option_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/cluster_auth_mode_option_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/server_options_nongeneral_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/server_options_nongeneral_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/server_options_nongeneral_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/server_options_base_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/server_options_base_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/cluster_auth_mode_option_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/index/libduplicate_key_tracker.a build/opt/mongo/db/index/duplicate_key_tracker.o Skipping ranlib for thin archive build/opt/mongo/db/index/libduplicate_key_tracker.a gcc -o build/opt/third_party/unwind/dist/src/dwarf/Lexpr.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/dwarf/Lexpr.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/cluster_auth_mode_option_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/shard_metadata_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/shard_metadata_util.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:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/cluster_auth_mode_option_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/cluster_auth_mode_option_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/runtime_constants_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/pipeline/runtime_constants_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/server_options_base_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/server_options_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/server_options_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/server_options_base_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/runtime_constants_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/runtime_constants_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/runtime_constants_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/runtime_constants_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/cluster_identity_loader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/cluster_identity_loader.cpp g++ -o build/opt/mongo/db/exec/document_value/document.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/document_value/document.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/util/ntservice.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/ntservice.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 g++ -o build/opt/mongo/db/traffic_recorder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/traffic_recorder.cpp ar rcsTD build/opt/mongo/db/libserver_options_base.a build/opt/mongo/db/server_options_base.o build/opt/mongo/db/cluster_auth_mode_option_gen.o build/opt/mongo/db/keyfile_option_gen.o build/opt/mongo/db/server_options_base_gen.o build/opt/mongo/db/server_options_general_gen.o build/opt/mongo/db/server_options_nongeneral_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libserver_options_base.a Generating build/opt/mongo/db/db_raii_gen.cpp g++ -o build/opt/mongo/db/db_raii_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/db_raii_gen.cpp g++ -o build/opt/mongo/db/db_raii.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/db_raii.cpp g++ -o build/opt/mongo/db/ftdc/ftdc_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ftdc/ftdc_mongod.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/db_raii_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/traffic_recorder.cpp:42: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/db_raii_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/db_raii_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/db_raii_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/traffic_recorder.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/traffic_recorder.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/traffic_recorder.cpp:42: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_mongod.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/db_raii.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/db_raii.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_mongod.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/db_raii.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_mongod.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/db_raii.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_mongod.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/ftdc/ftdc_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ftdc/ftdc_commands.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libtraffic_recorder.a build/opt/mongo/db/traffic_recorder.o build/opt/mongo/db/traffic_recorder_validators.o build/opt/mongo/db/traffic_recorder_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libtraffic_recorder.a g++ -o build/opt/mongo/db/repl/initial_sync_shared_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/initial_sync_shared_data.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_commands.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/btree/col_srch.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/col_srch.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/sessions_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/sessions_collection.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_commands.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libinitial_sync_shared_data.a build/opt/mongo/db/repl/initial_sync_shared_data.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:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/repl/libinitial_sync_shared_data.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:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/update/compare_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/compare_node.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:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_commands.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_commands.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libdb_raii.a build/opt/mongo/db/db_raii.o build/opt/mongo/db/db_raii_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libdb_raii.a gcc -o build/opt/third_party/icu4c-57.1/source/common/umath.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/umath.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/icu4c-57.1/source/common/servls.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/servls.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/uniset_props.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uniset_props.cpp gcc -o build/opt/third_party/kms-message/src/kms_request_opt.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DKMS_MSG_STATIC -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO -Isrc/third_party/kms-message/src src/third_party/kms-message/src/kms_request_opt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/s/scoped_operation_completion_sharding_actions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/update/update_leaf_node.h:32, from src/mongo/db/update/modifier_node.h:39, from src/mongo/db/update/compare_node.h:35, from src/mongo/db/update/compare_node.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libsessions_collection.a build/opt/mongo/db/sessions_collection.o build/opt/mongo/db/create_indexes_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libsessions_collection.a g++ -o build/opt/mongo/rpc/protocol.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/protocol.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/scoped_operation_completion_sharding_actions.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/transport/message_compressor_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/zstandard-1.4.3/zstd/lib -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/transport/message_compressor_manager.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/scoped_operation_completion_sharding_actions.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/index/index_access_method_factory_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index/index_access_method_factory_impl.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 gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/dictBuilder/cover.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/dictBuilder/cover.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/util/exception_filter_win32.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/exception_filter_win32.cpp g++ -o build/opt/third_party/shim_stemmer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS 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 g++ -o build/opt/mongo/s/catalog/dist_lock_catalog_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/catalog/dist_lock_catalog_impl.cpp src/mongo/transport/message_compressor_manager.cpp: In member function 'void mongo::MessageCompressorManager::clientBegin(mongo::BSONObjBuilder*)': src/mongo/transport/message_compressor_manager.cpp:217:21: warning: loop variable 'e' creates a copy from type 'const std::__cxx11::basic_string' [-Wrange-loop-construct] 217 | for (const auto e : _registry->getCompressorNames()) { | ^ src/mongo/transport/message_compressor_manager.cpp:217:21: note: use reference type to prevent copying 217 | for (const auto e : _registry->getCompressorNames()) { | ^ | & g++ -o build/opt/mongo/db/auth/user_name.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/user_name.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/projection_executor.h:38, from src/mongo/db/exec/wildcard_projection.h:30, from src/mongo/db/index/wildcard_key_generator.h:32, from src/mongo/db/index/wildcard_access_method.h:33, from src/mongo/db/index/index_access_method_factory_impl.cpp:42: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/wildcard_projection.h:30, from src/mongo/db/index/wildcard_key_generator.h:32, from src/mongo/db/index/wildcard_access_method.h:33, from src/mongo/db/index/index_access_method_factory_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/wildcard_projection.h:30, from src/mongo/db/index/wildcard_key_generator.h:32, from src/mongo/db/index/wildcard_access_method.h:33, from src/mongo/db/index/index_access_method_factory_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/wildcard_projection.h:30, from src/mongo/db/index/wildcard_key_generator.h:32, from src/mongo/db/index/wildcard_access_method.h:33, from src/mongo/db/index/index_access_method_factory_impl.cpp:42: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/crypto/sha1_block.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/crypto/sha1_block.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/program_options/src/value_semantic.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/program_options/src/value_semantic.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/program_options/src/config_file.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/program_options/src/config_file.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/program_options/src/positional_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/program_options/src/positional_options.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/program_options/src/variables_map.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/program_options/src/variables_map.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/boost-1.70.0/libs/program_options/src/winmain.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/program_options/src/winmain.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/program_options/src/options_description.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/program_options/src/options_description.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/program_options/src/parsers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/program_options/src/parsers.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/program_options/src/utf8_codecvt_facet.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/program_options/src/utf8_codecvt_facet.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/program_options/src/convert.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/program_options/src/convert.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/program_options/src/split.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/program_options/src/split.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/ucnv_io.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_io.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/attribute_name.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/attribute_name.cpp g++ -o build/opt/mongo/util/hex.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/hex.cpp g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp g++ -o build/opt/mongo/util/periodic_runner_factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/periodic_runner_factory.cpp ar rcsTD build/opt/third_party/boost-1.70.0/libboost_program_options.a build/opt/third_party/boost-1.70.0/libs/program_options/src/cmdline.o build/opt/third_party/boost-1.70.0/libs/program_options/src/config_file.o build/opt/third_party/boost-1.70.0/libs/program_options/src/convert.o build/opt/third_party/boost-1.70.0/libs/program_options/src/options_description.o build/opt/third_party/boost-1.70.0/libs/program_options/src/parsers.o build/opt/third_party/boost-1.70.0/libs/program_options/src/positional_options.o build/opt/third_party/boost-1.70.0/libs/program_options/src/split.o build/opt/third_party/boost-1.70.0/libs/program_options/src/utf8_codecvt_facet.o build/opt/third_party/boost-1.70.0/libs/program_options/src/value_semantic.o build/opt/third_party/boost-1.70.0/libs/program_options/src/variables_map.o build/opt/third_party/boost-1.70.0/libs/program_options/src/winmain.o Skipping ranlib for thin archive build/opt/third_party/boost-1.70.0/libboost_program_options.a Generating build/opt/mongo/util/fail_point_server_parameter_gen.cpp g++ -o build/opt/mongo/util/fail_point_server_parameter_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/util/fail_point_server_parameter_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/util/fail_point_server_parameter_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call 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 g++ -o build/opt/third_party/icu4c-57.1/source/common/usetiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/usetiter.cpp g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/fail_point_server_parameter_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/fail_point_server_parameter_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/fail_point_server_parameter_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/gc/RelocationOverlay.h:20, from src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:18, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:14, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/gc/RelocationOverlay.h:20, from src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:18, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:14, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/gc/RelocationOverlay.h:20, from src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:18, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:14, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:19, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:14, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:19, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:14, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:19, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:14, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gc::TenureCountCache]': src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:159:42: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gc::TenureCountCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:14, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:152:8: note: 'struct js::gc::TenureCountCache' declared here 152 | struct TenureCountCache | ^~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:25, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry, js::HeapPtr >; HashPolicy = js::HashMap, js::HeapPtr, js::MovableCellHasher >, js::ZoneAllocPolicy>::MapHashPolicy; AllocPolicy = js::ZoneAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::HeapPtr; Value = js::HeapPtr; HashPolicy = js::MovableCellHasher >; AllocPolicy = js::ZoneAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/WeakMap.cpp:194:14: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HeapPtr >, js::HashMap, js::HeapPtr, js::MovableCellHasher >, js::ZoneAllocPolicy>::MapHashPolicy, js::ZoneAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry, js::HeapPtr > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HeapPtr >, js::HashMap, js::HeapPtr, js::MovableCellHasher >, js::ZoneAllocPolicy>::MapHashPolicy, js::ZoneAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry, js::HeapPtr > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::ReadBarriered; HashPolicy = js::HashSet, js::StackBaseShape, js::SystemAllocPolicy>::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::ReadBarriered; HashPolicy = js::StackBaseShape; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/include/js/GCHashTable.h:753:18: required from 'void JS::WeakCache >::clear() [with T = js::ReadBarriered; HashPolicy = js::StackBaseShape; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.cpp:359:27: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashSet, js::StackBaseShape, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashSet, js::StackBaseShape, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::InitialShapeEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::InitialShapeEntry; HashPolicy = js::InitialShapeEntry; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/include/js/GCHashTable.h:753:18: required from 'void JS::WeakCache >::clear() [with T = js::InitialShapeEntry; HashPolicy = js::InitialShapeEntry; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.cpp:361:30: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:15, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:15, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:15, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:15, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:15, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.h:20, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:15, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.h:20, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:15, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.h:20, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:15, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::wasm::LinkDataTierCacheablePod]': src/third_party/mozjs-60/extract/js/src/wasm/WasmModule.h:50:50: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::wasm::LinkDataTierCacheablePod'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/wasm/WasmCompile.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/AsmJS.cpp:43, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:11: src/third_party/mozjs-60/extract/js/src/wasm/WasmModule.h:43:8: note: 'struct js::wasm::LinkDataTierCacheablePod' declared here 43 | struct LinkDataTierCacheablePod | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x64/MacroAssembler-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/AsmJS.cpp:44, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:11: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = AsmJSGlobal::CacheablePod]': src/third_party/mozjs-60/extract/js/src/wasm/AsmJS.cpp:166:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct AsmJSGlobal::CacheablePod'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:11: src/third_party/mozjs-60/extract/js/src/wasm/AsmJS.cpp:132:12: note: 'struct AsmJSGlobal::CacheablePod' declared here 132 | struct CacheablePod { | ^~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = AsmJSExport]': src/third_party/mozjs-60/extract/js/src/wasm/AsmJS.cpp:263:28: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class AsmJSExport'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:11: src/third_party/mozjs-60/extract/js/src/wasm/AsmJS.cpp:254:7: note: 'class AsmJSExport' declared here 254 | class AsmJSExport | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = AsmJSMetadataCacheablePod]': src/third_party/mozjs-60/extract/js/src/wasm/AsmJS.cpp:300:42: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct AsmJSMetadataCacheablePod'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:11: src/third_party/mozjs-60/extract/js/src/wasm/AsmJS.cpp:293:8: note: 'struct AsmJSMetadataCacheablePod' declared here 293 | struct AsmJSMetadataCacheablePod | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap >::MapHashPolicy; AllocPolicy = js::TempAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = js::frontend::UsedNameTracker::UsedNameInfo; HashPolicy = js::DefaultHasher; AllocPolicy = js::TempAllocPolicy]' src/third_party/mozjs-60/extract/js/src/frontend/ParseContext.h:167:19: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap >::MapHashPolicy, js::TempAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap >::MapHashPolicy, js::TempAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x64/MacroAssembler-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/AsmJS.cpp:44, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:11: src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h: In instantiation of 'T* js::jit::JitAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = JS::Value; Value = unsigned int; HashPolicy = js::jit::LIRGraph::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/jit/LIR.h:1893:37: required from here src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:101:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 101 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:15, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h: In instantiation of 'T* js::LifoAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; js::Fallibility fb = js::Fallible; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap >::MapHashPolicy; AllocPolicy = js::LifoAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap >::MapHashPolicy; AllocPolicy = js::LifoAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = js::wasm::AstSig*; Value = unsigned int; HashPolicy = js::wasm::AstSig; AllocPolicy = js::LifoAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/wasm/WasmAST.h:941:28: required from here src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:910:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 910 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Xdr.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:74:25: required from 'bool js::detail::InlineTable::switchToTable() [with InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:298:22: required from 'bool js::detail::InlineTable::add(js::detail::InlineTable::AddPtr&, KeyInput&&, Args&& ...) [with KeyInput = JSAtom*&; Args = {js::frontend::DeclaredNameInfo}; InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:535:25: required from 'bool js::InlineMap::add(js::InlineMap::AddPtr&, KeyInput&&, ValueInput&&) [with KeyInput = JSAtom*&; ValueInput = js::frontend::DeclaredNameInfo; Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; long unsigned int InlineEntries = 24; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; js::InlineMap::AddPtr = js::detail::InlineTable, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry, js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>, js::DefaultHasher, js::SystemAllocPolicy, 24>::AddPtr]' src/third_party/mozjs-60/extract/js/src/frontend/ParseContext.h:311:53: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ gcc -o build/opt/third_party/icu4c-57.1/source/stubdata/stubdata.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -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 cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for 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 g++ -o build/opt/mongo/client/cyrus_sasl_client_session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/cyrus_sasl_client_session.cpp gcc -o build/opt/third_party/wiredtiger/src/reconcile/rec_dictionary.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/reconcile/rec_dictionary.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:31, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:34, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:31, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:34, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:31, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:34, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:31, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jslibmath.h:16, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:24, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:31, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jslibmath.h:16, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:24, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:31, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jslibmath.h:16, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:24, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:31, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jslibmath.h:16, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:24, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:31, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jslibmath.h:16, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:24, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:31, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:31, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:31, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x64/MacroAssembler-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:19, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:28, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:31, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::wasm::LinkDataTierCacheablePod]': src/third_party/mozjs-60/extract/js/src/wasm/WasmModule.h:50:50: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::wasm::LinkDataTierCacheablePod'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/wasm/WasmCompile.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmGenerator.h:23, from src/third_party/mozjs-60/extract/js/src/wasm/WasmStubs.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/extract/js/src/wasm/WasmModule.h:43:8: note: 'struct js::wasm::LinkDataTierCacheablePod' declared here 43 | struct LinkDataTierCacheablePod | ^~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/opt/mongo/db/commands/fsync.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/fsync.cpp In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:31, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/opt/mongo/db/kill_sessions_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/kill_sessions_common.cpp In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:31, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:31, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:31, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:31, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:31, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/wasm/WasmTypes.h:31, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.h:22, from src/third_party/mozjs-60/extract/js/src/wasm/WasmBuiltins.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fsync.cpp:47: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/matcher/expression_text_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/expression_text_base.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fsync.cpp:47: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_str_length.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_str_length.cpp g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_eq.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/expression_text_base.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/expression_internal_schema_str_length.h:35, from src/mongo/db/matcher/schema/expression_internal_schema_str_length.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/expression_internal_schema_eq.h:35, from src/mongo/db/matcher/schema/expression_internal_schema_eq.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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 g++ -o build/opt/mongo/db/matcher/schema/json_pointer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/schema/json_pointer.cpp g++ -o build/opt/mongo/db/matcher/expression_leaf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/expression_leaf.cpp g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp g++ -o build/opt/mongo/db/matcher/matcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/matcher.cpp g++ -o build/opt/mongo/db/matcher/expression_tree.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/expression_tree.cpp In file included from src/mongo/db/matcher/expression_leaf.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.h:35, from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp:31: src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:85:25: warning: redundant move in return statement [-Wredundant-move] 85 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:85:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/expression_leaf.cpp:44: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call 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:140:25: warning: redundant move in return statement [-Wredundant-move] 140 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:140: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:177:25: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:177:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp:31: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/matcher.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/matcher.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp: In member function 'virtual std::unique_ptr mongo::InternalSchemaAllElemMatchFromIndexMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp:55:21: warning: redundant move in return statement [-Wredundant-move] 55 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp:55:21: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/matcher.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call 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:418:21: warning: redundant move in return statement [-Wredundant-move] 418 | return std::move(next); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_leaf.cpp:418:21: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.cpp: In lambda function: src/mongo/db/matcher/expression_leaf.cpp:593:29: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(simplifiedExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.cpp:593:29: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.cpp:603:29: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(simplifiedExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.cpp:603:29: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_tree.cpp:30: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/expression_tree.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.cpp: In lambda function: src/mongo/db/matcher/expression_tree.cpp:154:33: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(simplifiedExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.cpp:154:33: 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_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/matcher/expression.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/expression.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/matcher.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/matcher/expression_where_noop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/expression_where_noop.cpp g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_object_match.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_object_match.cpp g++ -o build/opt/mongo/db/matcher/matchable.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/matchable.cpp 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:54:21: warning: redundant move in return statement [-Wredundant-move] 54 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_where_noop.cpp:54:21: note: remove 'std::move' call Generating build/opt/mongo/db/matcher/schema/encrypt_schema_gen.cpp g++ -o build/opt/mongo/db/matcher/schema/json_schema_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/schema/json_schema_parser.cpp 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 g++ -o build/opt/mongo/db/matcher/expression_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/expression_parser.cpp g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.cpp g++ -o build/opt/mongo/db/matcher/rewrite_expr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/rewrite_expr.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/schema/json_schema_parser.h:33, from src/mongo/db/matcher/schema/json_schema_parser.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/expression_parser.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/schema/json_schema_parser.h:33, from src/mongo/db/matcher/schema/json_schema_parser.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/schema/json_schema_parser.h:33, from src/mongo/db/matcher/schema/json_schema_parser.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/expression_parser.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/schema/json_schema_parser.h:33, from src/mongo/db/matcher/schema/json_schema_parser.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/expression_parser.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, 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:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.h:35, from src/mongo/db/matcher/schema/json_schema_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:85:25: warning: redundant move in return statement [-Wredundant-move] 85 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:85: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:140:25: warning: redundant move in return statement [-Wredundant-move] 140 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:140: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:177:25: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:177:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:49: 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:50:25: warning: redundant move in return statement [-Wredundant-move] 50 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:50:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.cpp:43: 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:85:25: warning: redundant move in return statement [-Wredundant-move] 85 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:85: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_items.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMaxItemsMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_max_items.h:57:25: warning: redundant move in return statement [-Wredundant-move] 57 | return std::move(maxItems); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_items.h:57: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:140:25: warning: redundant move in return statement [-Wredundant-move] 140 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:140: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_length.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMaxLengthMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_max_length.h:55:25: warning: redundant move in return statement [-Wredundant-move] 55 | return std::move(maxLen); | ~~~~~~~~~^~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_length.h:55: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:177:25: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:177: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_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:67:25: warning: redundant move in return statement [-Wredundant-move] 67 | return std::move(maxProperties); | ~~~~~~~~~^~~~~~~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_properties.h:67: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_items.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMinItemsMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_min_items.h:57:25: warning: redundant move in return statement [-Wredundant-move] 57 | return std::move(minItems); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_items.h:57: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_length.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMinLengthMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_min_length.h:55:25: warning: redundant move in return statement [-Wredundant-move] 55 | return std::move(minLen); | ~~~~~~~~~^~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_length.h:55:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:56: 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:67:25: warning: redundant move in return statement [-Wredundant-move] 67 | return std::move(minProperties); | ~~~~~~~~~^~~~~~~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_properties.h:67:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:60: src/mongo/db/matcher/schema/expression_internal_schema_xor.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaXorMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_xor.h:58:25: warning: redundant move in return statement [-Wredundant-move] 58 | return std::move(xorCopy); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_xor.h:58:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/rewrite_expr.h:36, from src/mongo/db/matcher/rewrite_expr.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308: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:154:21: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(orExpr); | ~~~~~~~~~^~~~~~~~ src/mongo/db/matcher/schema/json_schema_parser.cpp:154:21: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.cpp:55: 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:50:25: warning: redundant move in return statement [-Wredundant-move] 50 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:50:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call 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:434:21: warning: redundant move in return statement [-Wredundant-move] 434 | return std::move(properties); | ~~~~~~~~~^~~~~~~~~~~~ src/mongo/db/matcher/schema/json_schema_parser.cpp:434:21: 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_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:57:25: warning: redundant move in return statement [-Wredundant-move] 57 | return std::move(maxItems); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_items.h:57:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/rewrite_expr.h:37, from src/mongo/db/matcher/rewrite_expr.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.cpp:58: 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:55:25: warning: redundant move in return statement [-Wredundant-move] 55 | return std::move(maxLen); | ~~~~~~~~~^~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_length.h:55:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184: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_properties.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMaxPropertiesMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_max_properties.h:67:25: warning: redundant move in return statement [-Wredundant-move] 67 | return std::move(maxProperties); | ~~~~~~~~~^~~~~~~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_properties.h:67:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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_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:57:25: warning: redundant move in return statement [-Wredundant-move] 57 | return std::move(minItems); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_items.h:57: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_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:55:25: warning: redundant move in return statement [-Wredundant-move] 55 | return std::move(minLen); | ~~~~~~~~~^~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_length.h:55: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_properties.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMinPropertiesMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_min_properties.h:67:25: warning: redundant move in return statement [-Wredundant-move] 67 | return std::move(minProperties); | ~~~~~~~~~^~~~~~~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_properties.h:67:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/expression.h:47, from src/mongo/db/matcher/rewrite_expr.h:38, from src/mongo/db/matcher/rewrite_expr.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.cpp:66: src/mongo/db/matcher/schema/expression_internal_schema_xor.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaXorMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_xor.h:58:25: warning: redundant move in return statement [-Wredundant-move] 58 | return std::move(xorCopy); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_xor.h:58:25: note: remove 'std::move' call src/mongo/db/matcher/expression_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:936:21: warning: redundant move in return statement [-Wredundant-move] 936 | return std::move(patternProperties); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:936:21: note: remove 'std::move' call src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWith > mongo::{anonymous}::parseProperties(mongo::BSONElement)': src/mongo/db/matcher/expression_parser.cpp:963:21: warning: redundant move in return statement [-Wredundant-move] 963 | return std::move(properties); | ~~~~~~~~~^~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:963:21: note: remove 'std::move' call 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:100:25: warning: redundant move in return statement [-Wredundant-move] 100 | return std::move(andMatch); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/rewrite_expr.cpp:100: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:121:25: warning: redundant move in return statement [-Wredundant-move] 121 | return std::move(orMatch); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/matcher/rewrite_expr.cpp:121: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:169:21: warning: redundant move in return statement [-Wredundant-move] 169 | return std::move(eqMatchExpr); | ~~~~~~~~~^~~~~~~~~~~~~ src/mongo/db/matcher/rewrite_expr.cpp:169:21: note: remove 'std::move' call g++ -o build/opt/mongo/db/matcher/expression_text_noop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/expression_text_noop.cpp In file included from src/mongo/db/matcher/schema/expression_internal_schema_cond.h:33, from src/mongo/db/matcher/schema/json_schema_parser.cpp:47: src/mongo/db/matcher/expression_arity.h: In instantiation of 'std::unique_ptr mongo::FixedArityMatchExpression::shallowClone() const [with T = mongo::InternalSchemaCondMatchExpression; long 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:39, from src/mongo/db/matcher/schema/json_schema_parser.h:33, from src/mongo/db/matcher/schema/json_schema_parser.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/expression_internal_schema_cond.h:33, from src/mongo/db/matcher/expression_parser.cpp:53: src/mongo/db/matcher/expression_arity.h: In instantiation of 'std::unique_ptr mongo::FixedArityMatchExpression::shallowClone() const [with T = mongo::InternalSchemaCondMatchExpression; long 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:39, from src/mongo/db/matcher/expression_parser.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/expression_text_noop.h:33, from src/mongo/db/matcher/expression_text_noop.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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 g++ -o build/opt/mongo/db/matcher/expression_array.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/expression_array.cpp g++ -o build/opt/mongo/db/matcher/matcher_type_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/matcher_type_set.cpp g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_xor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_xor.cpp In file included from src/mongo/db/matcher/expression_array.cpp:30: 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:85:25: warning: redundant move in return statement [-Wredundant-move] 85 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:85: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:140:25: warning: redundant move in return statement [-Wredundant-move] 140 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:140: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:177:25: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:177:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/matcher/match_details.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/match_details.cpp g++ -o build/opt/mongo/db/matcher/schema/encrypt_schema_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/matcher/schema/encrypt_schema_gen.cpp g++ -o build/opt/mongo/db/matcher/schema/encrypt_schema_types.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/schema/encrypt_schema_types.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/matcher_type_set.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/matcher_type_set.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/expression_internal_schema_xor.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_xor.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/matcher_type_set.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/expression_internal_schema_xor.cpp:32: src/mongo/db/matcher/schema/expression_internal_schema_xor.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaXorMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_xor.h:58:25: warning: redundant move in return statement [-Wredundant-move] 58 | return std::move(xorCopy); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_xor.h:58:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_num_properties.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_num_properties.cpp g++ -o build/opt/mongo/db/matcher/extensions_callback_noop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/extensions_callback_noop.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/matcher/schema/encrypt_schema_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/matcher_type_set.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/matcher/schema/encrypt_schema_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/matcher/schema/encrypt_schema_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/matcher/schema/encrypt_schema_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/matcher/expression_algo.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/expression_algo.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/matcher/extensions_callback_noop.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/matcher/extensions_callback_noop.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call 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 -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_algo.cpp:35: src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:85:25: warning: redundant move in return statement [-Wredundant-move] 85 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:85: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:140:25: warning: redundant move in return statement [-Wredundant-move] 140 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:140: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:177:25: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:177:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_algo.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_algo.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_algo.cpp:38: src/mongo/db/matcher/schema/expression_internal_schema_xor.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaXorMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_xor.h:58:25: warning: redundant move in return statement [-Wredundant-move] 58 | return std::move(xorCopy); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_xor.h:58:25: note: remove 'std::move' call src/mongo/db/matcher/expression_algo.cpp: In function 'std::unique_ptr mongo::{anonymous}::createAndOfNodes(std::vector >*)': src/mongo/db/matcher/expression_algo.cpp:258:21: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(splitAnd); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/expression_algo.cpp:258:21: note: remove 'std::move' call src/mongo/db/matcher/expression_algo.cpp: In function 'std::unique_ptr mongo::{anonymous}::createNorOfNodes(std::vector >*)': src/mongo/db/matcher/expression_algo.cpp:274:21: warning: redundant move in return statement [-Wredundant-move] 274 | return std::move(splitNor); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/expression_algo.cpp:274:21: note: remove 'std::move' call g++ -o build/opt/mongo/db/matcher/expression_where_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/expression_where_base.cpp In file included from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.h:35, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_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:85:25: warning: redundant move in return statement [-Wredundant-move] 85 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:85: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:140:25: warning: redundant move in return statement [-Wredundant-move] 140 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:140: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:177:25: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:177:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/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:94:21: warning: redundant move in return statement [-Wredundant-move] 94 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp:94:21: note: remove 'std::move' call g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_fmod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_fmod.cpp g++ -o build/opt/mongo/db/matcher/extensions_callback.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/extensions_callback.cpp In file included from src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_fmod.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/expression_internal_schema_fmod.cpp:32: 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:50:25: warning: redundant move in return statement [-Wredundant-move] 50 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:50:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/matcher/expression_internal_expr_eq.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/expression_internal_expr_eq.cpp g++ -o build/opt/mongo/db/matcher/expression_geo.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/expression_geo.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_cond.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_cond.cpp In file included from src/mongo/db/matcher/expression_internal_expr_eq.h:32, from src/mongo/db/matcher/expression_internal_expr_eq.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:66:21: warning: redundant move in return statement [-Wredundant-move] 66 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/expression_internal_expr_eq.cpp:66:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_geo.h:36, from src/mongo/db/matcher/expression_geo.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/expression_geo.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/update/update_internal_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/update_internal_node.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/expression_geo.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_geo.cpp: In member function 'virtual std::unique_ptr mongo::GeoMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_geo.cpp:411:21: warning: redundant move in return statement [-Wredundant-move] 411 | return std::move(next); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_geo.cpp:411: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:468:21: warning: redundant move in return statement [-Wredundant-move] 468 | return std::move(next); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_geo.cpp:468:21: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/accumulator_std_dev.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_std_dev.cpp In file included from src/mongo/db/matcher/schema/expression_internal_schema_cond.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_cond.cpp:32: src/mongo/db/matcher/expression_arity.h: In instantiation of 'std::unique_ptr mongo::FixedArityMatchExpression::shallowClone() const [with T = mongo::InternalSchemaCondMatchExpression; long 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 gcc -o build/opt/third_party/wiredtiger/src/support/lock_ext.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/lock_ext.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/base/system_error.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/system_error.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/expression_geo.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/ushape.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ushape.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/query/cluster_cursor_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/query/cluster_cursor_manager.cpp g++ -o build/opt/mongo/base/global_initializer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/global_initializer.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/expression.h:47, from src/mongo/db/pipeline/accumulator.h:43, from src/mongo/db/pipeline/accumulator_std_dev.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/third_party/shim_fmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/fmt/dist/include -Ibuild/opt -Isrc src/third_party/shim_fmt.cpp g++ -o build/opt/mongo/bson/bsontypes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/bsontypes.cpp In file included from src/mongo/db/pipeline/accumulator.h:43, from src/mongo/db/pipeline/accumulator_std_dev.cpp:32: src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionFromAccumulator]': src/mongo/db/pipeline/accumulator_std_dev.cpp:45:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(expr); | ^ src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionFromAccumulator]': src/mongo/db/pipeline/accumulator_std_dev.cpp:46:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350: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_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/encrypt_schema_types.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_pointer.o build/opt/mongo/db/matcher/schema/json_schema_parser.o build/opt/mongo/db/matcher/schema/encrypt_schema_gen.o Skipping ranlib for thin archive build/opt/mongo/db/matcher/libexpressions.a g++ -o build/opt/mongo/db/storage/index_entry_comparison.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/index_entry_comparison.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_client_cursor_impl.h:36, from src/mongo/s/query/cluster_cursor_manager.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_client_cursor_impl.h:36, from src/mongo/s/query/cluster_cursor_manager.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_client_cursor_impl.h:36, from src/mongo/s/query/cluster_cursor_manager.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_client_cursor_impl.h:36, from src/mongo/s/query/cluster_cursor_manager.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/authentication_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/authentication_commands.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 g++ -o build/opt/mongo/db/commands/server_status_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/server_status_command.cpp g++ -o build/opt/mongo/db/storage/storage_file_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/storage_file_util.cpp src/mongo/s/query/cluster_cursor_manager.cpp: In member function 'mongo::StatusWith mongo::ClusterCursorManager::_detachCursor(mongo::WithLock, mongo::OperationContext*, const mongo::NamespaceString&, mongo::CursorId)': src/mongo/s/query/cluster_cursor_manager.cpp:786:21: warning: redundant move in return statement [-Wredundant-move] 786 | return std::move(cursor); | ~~~~~~~~~^~~~~~~~ src/mongo/s/query/cluster_cursor_manager.cpp:786:21: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/authentication_commands.cpp:54: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status_command.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/rename_collection_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/rename_collection_cmd.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/authentication_commands.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/authentication_commands.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/authentication_commands.cpp:54: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_client_cursor_impl.h:36, from src/mongo/s/query/cluster_cursor_manager.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status_command.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/rename_collection_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/rename_collection_cmd.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/rename_collection_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/rename_collection_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/s/query/libcluster_cursor_manager.a build/opt/mongo/s/query/cluster_cursor_manager.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:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/s/query/libcluster_cursor_manager.a g++ -o build/opt/mongo/scripting/mozjs/exception.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/exception.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/catalog/sharding_catalog_client.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/catalog/sharding_catalog_client.cpp ar rcsTD build/opt/mongo/db/commands/libserver_status.a build/opt/mongo/db/commands/server_status_command.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libserver_status.a ar rcsTD build/opt/mongo/db/storage/libstorage_debug_util.a build/opt/mongo/db/storage/storage_debug_util.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libstorage_debug_util.a g++ -o build/opt/mongo/db/commands/map_reduce_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands/map_reduce_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/index_names.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index_names.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/map_reduce_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/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 g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_log2.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/e_log2.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/map_reduce_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call Generating build/opt/mongo/db/cursor_server_params_gen.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:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/bson/timestamp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/timestamp.cpp g++ -o build/opt/mongo/db/cursor_server_params.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/cursor_server_params.cpp g++ -o build/opt/mongo/db/collection_index_usage_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/collection_index_usage_tracker.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/map_reduce_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/map_reduce_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/timelib-2021.06/parse_zoneinfo.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/timelib-2021.06 src/third_party/timelib-2021.06/parse_zoneinfo.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/icu4c-57.1/source/common/ustrcase.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustrcase.cpp g++ -o build/opt/mongo/logger/console.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logger/console.cpp 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 g++ -o build/opt/mongo/db/s/balancer/cluster_statistics_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/balancer/cluster_statistics_impl.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/messagepattern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/messagepattern.cpp gcc -o build/opt/third_party/wiredtiger/src/block/block_mgr.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/block/block_mgr.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/icu4c-57.1/source/common/normlzr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/normlzr.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/balancer/cluster_statistics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/balancer/cluster_statistics.cpp gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/zstdmt_compress.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/compress/zstdmt_compress.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/client/sdam/topology_description.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/sdam/topology_description.cpp g++ -o build/opt/mongo/db/ftdc/ftdc_system_stats_linux.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ftdc/ftdc_system_stats_linux.cpp g++ -o build/opt/mongo/db/repl/replication_coordinator_impl_elect_v1.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp g++ -o build/opt/mongo/db/error_labels.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/error_labels.cpp Generating build/opt/mongo/db/repl/topology_coordinator_gen.cpp g++ -o build/opt/mongo/db/repl/oplog_applier_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/oplog_applier_impl.cpp g++ -o build/opt/mongo/db/repl/topology_coordinator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/topology_coordinator.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:41, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:41, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:41, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:41, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/error_labels.cpp:31: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/error_labels.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/oplog_applier_impl.h:36, from src/mongo/db/repl/oplog_applier_impl.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/error_labels.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/error_labels.cpp:31: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/oplog_applier_impl.h:36, from src/mongo/db/repl/oplog_applier_impl.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/oplog_applier_impl.h:36, from src/mongo/db/repl/oplog_applier_impl.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/oplog_applier_impl.h:36, from src/mongo/db/repl/oplog_applier_impl.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/kill_operations_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands/kill_operations_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/s/sharding_task_executor_pool_gen.cpp g++ -o build/opt/mongo/s/sharding_initialization.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/sharding_initialization.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/kill_operations_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/kill_operations_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/kill_operations_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/kill_operations_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/base/data_type_terminated.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/data_type_terminated.cpp g++ -o build/opt/mongo/db/concurrency/lock_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/concurrency/lock_state.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/sharding_initialization.cpp:72: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/sharding_initialization.cpp:72: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/sharding_initialization.cpp:72: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/icu4c-57.1/source/common/utypes.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/utypes.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C Generating build/opt/mongo/db/index/index_build_interceptor_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/sharding_initialization.cpp:72: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/index/index_build_interceptor_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/index/index_build_interceptor_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/flow_control.h:34, from src/mongo/db/concurrency/lock_state.cpp:43: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/flow_control.h:34, from src/mongo/db/concurrency/lock_state.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/index/index_build_interceptor_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/flow_control.h:34, from src/mongo/db/concurrency/lock_state.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/flow_control.h:34, from src/mongo/db/concurrency/lock_state.cpp:43: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/index/index_build_interceptor_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/executor/network_interface_thread_pool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/executor/network_interface_thread_pool.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/index/index_build_interceptor_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/index/index_build_interceptor_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/concurrency/lock_state.cpp: In member function 'virtual boost::optional mongo::LockerImpl::getLockerInfo(boost::optional >) const': src/mongo/db/concurrency/lock_state.cpp:749:21: warning: redundant move in return statement [-Wredundant-move] 749 | return std::move(lockerInfo); | ~~~~~~~~~^~~~~~~~~~~~ src/mongo/db/concurrency/lock_state.cpp:749:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/sharding_initialization.cpp:72: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/flow_control.h:34, from src/mongo/db/concurrency/lock_state.cpp:43: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/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 g++ -o build/opt/mongo/executor/thread_pool_task_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/executor/thread_pool_task_executor.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/spirit_encoding.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/spirit_encoding.cpp g++ -o build/opt/mongo/db/commands/map_reduce_agg.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/map_reduce_agg.cpp g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_compress_sequences.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_compress_sequences.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/s2/base/stringprintf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/base/stringprintf.cc g++ -o build/opt/mongo/db/commands/index_filter_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/index_filter_commands.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/map_reduce_agg.cpp:41: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/map_reduce_agg.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/map_reduce_agg.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/map_reduce_agg.cpp:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/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 g++ -o build/opt/mongo/db/query/collation/collator_factory_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/collation/collator_factory_interface.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/index_filter_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/index_filter_commands.cpp:42: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/index_filter_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/index_filter_commands.cpp:42: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 ar rcsTD build/opt/mongo/s/client/libshard_interface.a build/opt/mongo/s/client/shard.o Skipping ranlib for thin archive build/opt/mongo/s/client/libshard_interface.a g++ -o build/opt/mongo/db/catalog/index_key_validate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/index_key_validate.cpp In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h: In instantiation of 'T* js::jit::JitAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = JS::Value; Value = unsigned int; HashPolicy = js::jit::LIRGraph::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/jit/LIR.h:1893:37: required from here src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:101:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 101 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/shared/Lowering-shared.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/projection_executor.h:38, from src/mongo/db/exec/wildcard_projection.h:30, from src/mongo/db/index/wildcard_key_generator.h:32, from src/mongo/db/catalog/index_key_validate.cpp:45: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/wildcard_projection.h:30, from src/mongo/db/index/wildcard_key_generator.h:32, from src/mongo/db/catalog/index_key_validate.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/wildcard_projection.h:30, from src/mongo/db/index/wildcard_key_generator.h:32, from src/mongo/db/catalog/index_key_validate.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/wildcard_projection.h:30, from src/mongo/db/index/wildcard_key_generator.h:32, from src/mongo/db/catalog/index_key_validate.cpp:45: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/pipeline/process_interface/libshardsvr_process_interface.a build/opt/mongo/db/pipeline/process_interface/shardsvr_process_interface.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/process_interface/libshardsvr_process_interface.a g++ -o build/opt/third_party/icu4c-57.1/source/common/loadednormalizer2impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/loadednormalizer2impl.cpp g++ -o build/opt/mongo/db/query/cursor_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/cursor_response.cpp g++ -o build/opt/mongo/db/sessions_collection_standalone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/sessions_collection_standalone.cpp g++ -o build/opt/mongo/util/heap_profiler.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/heap_profiler.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from src/mongo/db/query/cursor_response.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from src/mongo/db/query/cursor_response.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from src/mongo/db/query/cursor_response.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from src/mongo/db/query/cursor_response.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/util/tcmalloc_server_status_section.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/tcmalloc_server_status_section.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/heap_profiler.cpp:40: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/heap_profiler.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/heap_profiler.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/tcmalloc_server_status_section.cpp:42: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/heap_profiler.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call 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 g++ -o build/opt/mongo/s/catalog/type_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/catalog/type_collection.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/tcmalloc_server_status_section.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/tcmalloc_server_status_section.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/tcmalloc_server_status_section.cpp:42: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/util/net/ssl_parameters_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/util/net/ssl_parameters_gen.cpp g++ -o build/opt/mongo/db/query/count_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/count_request.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/ssl_parameters_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/count_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/ssl_parameters_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/count_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/count_request.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/count_request.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/ssl_parameters_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/ssl_parameters_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/replication_coordinator_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/replication_coordinator_impl.cpp ar rcsTD build/opt/mongo/util/libtcmalloc_set_parameter.a build/opt/mongo/util/tcmalloc_server_status_section.o build/opt/mongo/util/tcmalloc_set_parameter.o build/opt/mongo/util/tcmalloc_parameters_gen.o build/opt/mongo/util/heap_profiler.o Skipping ranlib for thin archive build/opt/mongo/util/libtcmalloc_set_parameter.a g++ -o build/opt/mongo/scripting/scripting_server.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/scripting_server.cpp ar rcsTD build/opt/mongo/scripting/libscripting_server.a build/opt/mongo/scripting/scripting_server.o Skipping ranlib for thin archive build/opt/mongo/scripting/libscripting_server.a g++ -o build/opt/mongo/db/query/collation/collator_factory_icu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/collation/collator_factory_icu.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/count_request.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/query/collation/collator_interface_icu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/collation/collator_interface_icu.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/locresdata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/locresdata.cpp gcc -o build/opt/third_party/timelib-2021.06/astro.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/timelib-2021.06 src/third_party/timelib-2021.06/astro.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/block/block_ckpt_scan.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/block/block_ckpt_scan.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_double_fast.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_double_fast.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/platform/mutex.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/platform/mutex.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:41, from src/mongo/db/repl/replication_coordinator_impl.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call 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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/query/collation/libcollator_icu.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:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call g++ -o build/opt/mongo/util/testing_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/testing_options.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:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:41, from src/mongo/db/repl/replication_coordinator_impl.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:41, from src/mongo/db/repl/replication_coordinator_impl.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:41, from src/mongo/db/repl/replication_coordinator_impl.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/shim_icu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/shim_icu.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 g++ -o build/opt/mongo/rpc/metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/metadata.cpp g++ -o build/opt/mongo/db/repl/update_position_args.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/update_position_args.cpp g++ -o build/opt/mongo/db/pipeline/aggregation_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/aggregation_request.cpp In file included from src/mongo/db/pipeline/aggregation_request.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/repl/update_position_args.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/repl/update_position_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/repl/update_position_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/repl/update_position_args.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/aggregation_request.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/aggregation_request.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/aggregation_request.cpp:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/query/cluster_client_cursor_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/query/cluster_client_cursor_impl.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_client_cursor_impl.h:36, from src/mongo/s/query/cluster_client_cursor_impl.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_client_cursor_impl.h:36, from src/mongo/s/query/cluster_client_cursor_impl.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_client_cursor_impl.h:36, from src/mongo/s/query/cluster_client_cursor_impl.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_client_cursor_impl.h:36, from src/mongo/s/query/cluster_client_cursor_impl.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/migration_session_id.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/migration_session_id.cpp 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/pipeline/libaggregation_request.a g++ -o build/opt/mongo/db/s/shard_identity_rollback_notifier.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/shard_identity_rollback_notifier.cpp g++ -o build/opt/mongo/db/s/read_only_catalog_cache_loader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/read_only_catalog_cache_loader.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_client_cursor_impl.h:36, from src/mongo/s/query/cluster_client_cursor_impl.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/migration_chunk_cloner_source_legacy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/migration_chunk_cloner_source_legacy.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 g++ -o build/opt/mongo/db/s/migration_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/migration_util.cpp g++ -o build/opt/mongo/db/s/range_deletion_task_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/s/range_deletion_task_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/delete.h:32, from src/mongo/db/query/internal_plans.h:33, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/delete.h:32, from src/mongo/db/query/internal_plans.h:33, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/migration_util.h:32, from src/mongo/db/s/migration_util.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/range_deletion_task_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/migration_util.h:32, from src/mongo/db/s/migration_util.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/delete.h:32, from src/mongo/db/query/internal_plans.h:33, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/delete.h:32, from src/mongo/db/query/internal_plans.h:33, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/range_deletion_task_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/migration_util.h:32, from src/mongo/db/s/migration_util.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/migration_util.h:32, from src/mongo/db/s/migration_util.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/range_deletion_task_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/range_deletion_task_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/sharding_statistics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/sharding_statistics.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/range_deletion_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/range_deletion_util.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/migration_coordinator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/migration_coordinator.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/range_deletion_util.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/range_deletion_util.cpp:42: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/range_deletion_util.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/range_deletion_util.cpp:42: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/migration_util.h:32, from src/mongo/db/s/migration_coordinator.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/move_timing_helper.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/move_timing_helper.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:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/migration_util.h:32, from src/mongo/db/s/migration_coordinator.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/migration_util.h:32, from src/mongo/db/s/migration_coordinator.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/migration_util.h:32, from src/mongo/db/s/migration_coordinator.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/move_timing_helper.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/move_primary_source_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/move_primary_source_manager.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:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/move_timing_helper.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/move_timing_helper.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/move_timing_helper.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/s/database_sharding_state.h:32, from src/mongo/db/s/move_primary_source_manager.h:32, from src/mongo/db/s/move_primary_source_manager.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/s/database_sharding_state.h:32, from src/mongo/db/s/move_primary_source_manager.h:32, from src/mongo/db/s/move_primary_source_manager.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/s/database_sharding_state.h:32, from src/mongo/db/s/move_primary_source_manager.h:32, from src/mongo/db/s/move_primary_source_manager.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/s/database_sharding_state.h:32, from src/mongo/db/s/move_primary_source_manager.h:32, from src/mongo/db/s/move_primary_source_manager.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/active_move_primaries_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/active_move_primaries_registry.cpp g++ -o build/opt/mongo/db/s/metadata_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -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::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/active_shard_collection_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/active_shard_collection_registry.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/delete.h:32, from src/mongo/db/query/internal_plans.h:33, from src/mongo/db/s/metadata_manager.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/shard_filtering_metadata_refresh.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/shard_filtering_metadata_refresh.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/delete.h:32, from src/mongo/db/query/internal_plans.h:33, from src/mongo/db/s/metadata_manager.cpp:41: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/delete.h:32, from src/mongo/db/query/internal_plans.h:33, from src/mongo/db/s/metadata_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/delete.h:32, from src/mongo/db/query/internal_plans.h:33, from src/mongo/db/s/metadata_manager.cpp:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/active_shard_collection_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/active_shard_collection_registry.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/implicit_create_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/implicit_create_collection.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/active_shard_collection_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/active_shard_collection_registry.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/s/shard_filtering_metadata_refresh.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/s/shard_filtering_metadata_refresh.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/s/shard_filtering_metadata_refresh.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/s/shard_filtering_metadata_refresh.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/s/implicit_create_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/s/implicit_create_collection.cpp:40: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/s/implicit_create_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/s/implicit_create_collection.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/split_chunk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/split_chunk.cpp g++ -o build/opt/mongo/db/s/start_chunk_clone_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/start_chunk_clone_request.cpp g++ -o build/opt/mongo/db/s/split_vector.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/split_vector.cpp g++ -o build/opt/mongo/db/s/sharding_initialization_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/sharding_initialization_mongod.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:35, from src/mongo/db/s/start_chunk_clone_request.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/split_chunk.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:35, from src/mongo/db/s/start_chunk_clone_request.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/split_chunk.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:35, from src/mongo/db/s/start_chunk_clone_request.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/split_chunk.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:35, from src/mongo/db/s/start_chunk_clone_request.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/split_chunk.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/split_vector.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/split_vector.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/sharding_initialization_mongod.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/split_vector.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/split_vector.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/sharding_initialization_mongod.cpp:41: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/sharding_initialization_mongod.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/sharding_initialization_mongod.cpp:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/sharding_config_optime_gossip.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/sharding_config_optime_gossip.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/db/repl/image_collection_entry_gen.cpp g++ -o build/opt/mongo/db/s/session_catalog_migration_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/session_catalog_migration_source.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/config_server_op_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config_server_op_observer.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/session_catalog_migration_source.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/session_catalog_migration_source.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/migration_chunk_cloner_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/migration_chunk_cloner_source.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/session_catalog_migration_source.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/session_catalog_migration_source.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/s/config_server_op_observer.h:32, from src/mongo/db/s/config_server_op_observer.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/s/config_server_op_observer.h:32, from src/mongo/db/s/config_server_op_observer.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/shard_key_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/shard_key_util.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/s/config_server_op_observer.h:32, from src/mongo/db/s/config_server_op_observer.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/s/config_server_op_observer.h:32, from src/mongo/db/s/config_server_op_observer.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/periodic_balancer_config_refresher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/periodic_balancer_config_refresher.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/cluster_commands_helpers.h:39, from src/mongo/db/s/shard_key_util.cpp:40: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/cluster_commands_helpers.h:39, from src/mongo/db/s/shard_key_util.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/cluster_commands_helpers.h:39, from src/mongo/db/s/shard_key_util.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/cluster_commands_helpers.h:39, from src/mongo/db/s/shard_key_util.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/migration_source_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/migration_source_manager.cpp g++ -o build/opt/mongo/db/s/chunk_move_write_concern_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/chunk_move_write_concern_options.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/collection_sharding_runtime.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/collection_sharding_runtime.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/migration_source_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/session_catalog_migration_destination.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/session_catalog_migration_destination.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/migration_source_manager.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/sharding_state_recovery.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/sharding_state_recovery.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/collection_sharding_runtime.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/migration_source_manager.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/migration_source_manager.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/collection_sharding_runtime.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/collection_sharding_runtime.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/collection_sharding_runtime.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/sharding_state_recovery.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/sharding_state_recovery.cpp:40: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/s/session_catalog_migration_destination.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/s/session_catalog_migration_destination.cpp:41: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/sharding_state_recovery.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/sharding_state_recovery.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/s/session_catalog_migration_destination.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/s/session_catalog_migration_destination.cpp:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/icu4c-57.1/source/common/uchar.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uchar.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_fast.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_fast.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/icu4c-57.1/source/common/unistr_case.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unistr_case.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/variables.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/variables.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/threadsafe_queue.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/threadsafe_queue.cpp g++ -o build/opt/mongo/util/quick_exit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -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 g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/attribute_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/attribute_set.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/utrie2.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/utrie2.cpp g++ -o build/opt/mongo/s/catalog/type_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/catalog/type_mongos.cpp g++ -o build/opt/third_party/shim_yaml.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS 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 gcc -o build/opt/third_party/wiredtiger/src/os_common/os_getopt.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_common/os_getopt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/fts/tokenizer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/fts/tokenizer.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_sharding_runtime.o build/opt/mongo/db/s/collection_sharding_state_factory_shard.o build/opt/mongo/db/s/collection_sharding_state_factory_standalone.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_coordinator.o build/opt/mongo/db/s/migration_destination_manager.o build/opt/mongo/db/s/migration_session_id.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/periodic_balancer_config_refresher.o build/opt/mongo/db/s/periodic_sharded_index_consistency_checker.o build/opt/mongo/db/s/range_deletion_util.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_key_util.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 build/opt/mongo/db/s/start_chunk_clone_request.o build/opt/mongo/db/s/range_deletion_task_gen.o build/opt/mongo/db/s/migration_coordinator_document_gen.o Skipping ranlib for thin archive build/opt/mongo/db/s/libsharding_runtime_d.a g++ -o build/opt/mongo/db/fts/fts_spec_legacy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/fts/fts_spec_legacy.cpp g++ -o build/opt/mongo/db/fts/fts_unicode_phrase_matcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/fts/fts_unicode_phrase_matcher.cpp g++ -o build/opt/mongo/db/fts/fts_basic_tokenizer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/fts/fts_basic_tokenizer.cpp g++ -o build/opt/mongo/db/fts/fts_element_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/fts/fts_element_iterator.cpp g++ -o build/opt/mongo/db/fts/fts_basic_phrase_matcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/fts/fts_basic_phrase_matcher.cpp g++ -o build/opt/mongo/db/fts/stemmer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/fts/stemmer.cpp g++ -o build/opt/mongo/db/fts/stop_words.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/fts/stop_words.cpp g++ -o build/opt/mongo/db/fts/fts_query_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/fts/fts_query_parser.cpp /usr/bin/python3 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 g++ -o build/opt/mongo/db/fts/stop_words_list.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/fts/stop_words_list.cpp g++ -o build/opt/mongo/db/fts/fts_unicode_tokenizer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/fts/fts_unicode_tokenizer.cpp g++ -o build/opt/mongo/db/fts/fts_matcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/fts/fts_matcher.cpp g++ -o build/opt/mongo/db/fts/fts_spec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/fts/fts_spec.cpp g++ -o build/opt/third_party/shim_abseil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/abseil-cpp-master/abseil-cpp src/third_party/shim_abseil.cpp g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp g++ -o build/opt/mongo/db/ftdc/file_writer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ftdc/file_writer.cpp g++ -o build/opt/mongo/base/shim.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/shim.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/fts/fts_spec.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/fts/fts_spec.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_compress_literals.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_compress_literals.c src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_ldm.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_ldm.c src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/fts/fts_spec.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/dictBuilder/divsufsort.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/dictBuilder/divsufsort.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/fts/fts_spec.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/dictBuilder/fastcover.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/dictBuilder/fastcover.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/fts/fts_spec.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/deprecated/zbuff_compress.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/deprecated/zbuff_compress.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/common/xxhash.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/common/xxhash.c gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_compress.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_compress.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/deprecated/zbuff_decompress.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/deprecated/zbuff_decompress.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/common/pool.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/common/pool.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/common/entropy_common.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/common/entropy_common.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/common/zstd_common.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/common/zstd_common.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_lazy.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_lazy.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_opt.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_opt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/dictBuilder/zdict.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/dictBuilder/zdict.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/common/error_private.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/common/error_private.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/decompress/zstd_decompress_block.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/decompress/zstd_decompress_block.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/hist.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/compress/hist.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/fse_compress.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/compress/fse_compress.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/common/threading.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/common/threading.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/common/fse_decompress.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/common/fse_decompress.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/huf_compress.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib/common -Isrc/third_party/zstandard-1.4.3/zstd/lib src/third_party/zstandard-1.4.3/zstd/lib/compress/huf_compress.c /usr/bin/python3 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 cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/fts/unicode/codepoints_delimiter_list.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/fts/unicode/codepoints_delimiter_list.cpp ar rcsTD build/opt/third_party/zstandard-1.4.3/libzstd.a build/opt/third_party/zstandard-1.4.3/zstd/lib/common/entropy_common.o build/opt/third_party/zstandard-1.4.3/zstd/lib/common/error_private.o build/opt/third_party/zstandard-1.4.3/zstd/lib/common/fse_decompress.o build/opt/third_party/zstandard-1.4.3/zstd/lib/common/pool.o build/opt/third_party/zstandard-1.4.3/zstd/lib/common/threading.o build/opt/third_party/zstandard-1.4.3/zstd/lib/common/xxhash.o build/opt/third_party/zstandard-1.4.3/zstd/lib/common/zstd_common.o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/fse_compress.o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/hist.o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/huf_compress.o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_compress.o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_compress_literals.o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_compress_sequences.o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_double_fast.o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_fast.o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_lazy.o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_ldm.o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/zstd_opt.o build/opt/third_party/zstandard-1.4.3/zstd/lib/compress/zstdmt_compress.o build/opt/third_party/zstandard-1.4.3/zstd/lib/decompress/huf_decompress.o build/opt/third_party/zstandard-1.4.3/zstd/lib/decompress/zstd_ddict.o build/opt/third_party/zstandard-1.4.3/zstd/lib/decompress/zstd_decompress.o build/opt/third_party/zstandard-1.4.3/zstd/lib/decompress/zstd_decompress_block.o build/opt/third_party/zstandard-1.4.3/zstd/lib/deprecated/zbuff_common.o build/opt/third_party/zstandard-1.4.3/zstd/lib/deprecated/zbuff_compress.o build/opt/third_party/zstandard-1.4.3/zstd/lib/deprecated/zbuff_decompress.o build/opt/third_party/zstandard-1.4.3/zstd/lib/dictBuilder/cover.o build/opt/third_party/zstandard-1.4.3/zstd/lib/dictBuilder/divsufsort.o build/opt/third_party/zstandard-1.4.3/zstd/lib/dictBuilder/fastcover.o build/opt/third_party/zstandard-1.4.3/zstd/lib/dictBuilder/zdict.o Skipping ranlib for thin archive build/opt/third_party/zstandard-1.4.3/libzstd.a g++ -o build/opt/mongo/s/client/shard_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/client/shard_registry.cpp g++ -o build/opt/mongo/s/client/sharding_network_connection_hook.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/client/sharding_network_connection_hook.cpp In file included from src/third_party/mozjs-60/extract/js/src/vm/UnboxedObject-inl.h:14, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:21, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/CompactBuffer.h:10, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/fts/fts_spec.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/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 Skipping ranlib for thin archive build/opt/mongo/db/fts/libbase_fts.a gcc -o build/opt/third_party/unwind/dist/src/mi/Lget_accessors.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/mi/Lget_accessors.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/exec/count.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/count.cpp In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/CompactBuffer.h:10, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/CompactBuffer.h:10, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/CompactBuffer.h:10, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:15, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineJIT.h:13, from src/third_party/mozjs-60/extract/js/src/jit/SharedIC.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:17, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineJIT.h:13, from src/third_party/mozjs-60/extract/js/src/jit/SharedIC.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:17, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineJIT.h:13, from src/third_party/mozjs-60/extract/js/src/jit/SharedIC.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:17, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineJIT.h:13, from src/third_party/mozjs-60/extract/js/src/jit/SharedIC.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:17, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineJIT.h:13, from src/third_party/mozjs-60/extract/js/src/jit/SharedIC.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:17, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineJIT.h:13, from src/third_party/mozjs-60/extract/js/src/jit/SharedIC.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:17, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineJIT.h:13, from src/third_party/mozjs-60/extract/js/src/jit/SharedIC.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:17, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h: In instantiation of 'T* js::jit::JitAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = JS::Value; Value = unsigned int; HashPolicy = js::jit::LIRGraph::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/jit/LIR.h:1893:37: required from here src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:101:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 101 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.cpp:11: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/exec/count.h:32, from src/mongo/db/exec/count.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/executor/connection_pool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/executor/connection_pool.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/count.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/count.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/count.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/btree/bt_stat.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_stat.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_ct.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_ct.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/storage/durable_catalog_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/durable_catalog_impl.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/executor/connection_pool.cpp:48: 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 = absl::container_internal::HashEq::Hash; KeyEqual = absl::container_internal::HashEq::Eq]': src/mongo/executor/connection_pool.cpp:861:19: required from here src/mongo/util/lru_cache.h:108:34: warning: redundant move in return statement [-Wredundant-move] 108 | return std::move(pair); | ^ src/mongo/util/lru_cache.h:108:34: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_impl.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_impl.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/third_party/fmt/dist/src/format.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-error=unused-result -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/fmt/dist/include -Ibuild/opt -Isrc src/third_party/fmt/dist/src/format.cc In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_impl.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_impl.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/cursor/cur_hs.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/cursor/cur_hs.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/index/index_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index/index_access_method.cpp ar rcsTD build/opt/third_party/fmt/libfmt.a build/opt/third_party/fmt/dist/src/format.o build/opt/third_party/fmt/dist/src/posix.o Skipping ranlib for thin archive build/opt/third_party/fmt/libfmt.a g++ -o build/opt/mongo/executor/async_multicaster.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/executor/async_multicaster.cpp gcc -o build/opt/third_party/wiredtiger/src/conn/conn_cache_pool.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/conn/conn_cache_pool.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/storage/control/journal_flusher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/control/journal_flusher.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/catalog/validate_state.h:35, from src/mongo/db/catalog/index_consistency.h:33, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/catalog/validate_state.h:35, from src/mongo/db/catalog/index_consistency.h:33, from src/mongo/db/index/index_access_method.cpp:42: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/catalog/validate_state.h:35, from src/mongo/db/catalog/index_consistency.h:33, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/catalog/validate_state.h:35, from src/mongo/db/catalog/index_consistency.h:33, from src/mongo/db/index/index_access_method.cpp:42: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/insert_group.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/insert_group.cpp src/mongo/db/index/index_access_method.cpp: In member function 'virtual mongo::Status mongo::AbstractIndexAccessMethod::update(mongo::OperationContext*, const mongo::UpdateTicket&, int64_t*, int64_t*)': src/mongo/db/index/index_access_method.cpp:443:21: warning: loop variable 'keyString' creates a copy from type 'const mongo::KeyString::Value' [-Wrange-loop-construct] 443 | for (const auto keyString : ticket.added) { | ^~~~~~~~~ src/mongo/db/index/index_access_method.cpp:443:21: note: use reference type to prevent copying 443 | for (const auto keyString : ticket.added) { | ^~~~~~~~~ | & g++ -o build/opt/mongo/logv2/json_formatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logv2/json_formatter.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/insert_group.h:35, from src/mongo/db/repl/insert_group.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/insert_group.h:35, from src/mongo/db/repl/insert_group.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/insert_group.h:35, from src/mongo/db/repl/insert_group.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/libdurable_catalog_impl.a build/opt/mongo/db/storage/durable_catalog_impl.o In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/insert_group.h:35, from src/mongo/db/repl/insert_group.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/storage/libdurable_catalog_impl.a gcc -o build/opt/third_party/wiredtiger/src/os_posix/os_time.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_time.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/boost-1.70.0/libs/filesystem/src/codecvt_error_category.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/filesystem/src/codecvt_error_category.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/catalog/validate_state.h:35, from src/mongo/db/catalog/index_consistency.h:33, 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::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/client/sasl_sspi_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/sasl_sspi_options.cpp gcc -o build/opt/third_party/wiredtiger/src/conn/api_calc_modify.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/conn/api_calc_modify.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C Generating build/opt/mongo/client/sasl_aws_client_options_gen.cpp g++ -o build/opt/mongo/client/sasl_aws_client_options_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/client/sasl_aws_client_options_gen.cpp gcc -o build/opt/third_party/unwind/dist/src/mi/dyn-info-list.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/mi/dyn-info-list.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/repl/member_config.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/member_config.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/client/sasl_aws_client_options_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/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 g++ -o build/opt/mongo/db/repl/read_concern_args.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/read_concern_args.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/sasl_aws_client_options_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/liboplog_application.a build/opt/mongo/db/repl/insert_group.o build/opt/mongo/db/repl/oplog_applier_impl.o build/opt/mongo/db/repl/session_update_tracker.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:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplog_application.a In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/sasl_aws_client_options_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/free_mon/free_mon_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_mongod.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/sasl_aws_client_options_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/repl/member_config.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/repl/member_config.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/repl/member_config.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/repl/member_config.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_registry.h:36, from src/mongo/db/free_mon/free_mon_mongod.h:34, from src/mongo/db/free_mon/free_mon_mongod.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_registry.h:36, from src/mongo/db/free_mon/free_mon_mongod.h:34, from src/mongo/db/free_mon/free_mon_mongod.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call 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 gcc -o build/opt/third_party/wiredtiger/src/checksum/software/checksum.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/checksum/software/checksum.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/checksum/x86/crc32-x86.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/checksum/x86/crc32-x86.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/opt/third_party/wiredtiger/libwiredtiger_checksum.a build/opt/third_party/wiredtiger/src/checksum/software/checksum.o build/opt/third_party/wiredtiger/src/checksum/x86/crc32-x86.o build/opt/third_party/wiredtiger/src/checksum/x86/crc32-x86-alt.o Skipping ranlib for thin archive build/opt/third_party/wiredtiger/libwiredtiger_checksum.a Generating build/opt/mongo/db/pipeline/document_source_list_sessions_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/query/router_stage_pipeline.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/query/router_stage_pipeline.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_registry.h:36, from src/mongo/db/free_mon/free_mon_mongod.h:34, from src/mongo/db/free_mon/free_mon_mongod.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_registry.h:36, from src/mongo/db/free_mon/free_mon_mongod.h:34, from src/mongo/db/free_mon/free_mon_mongod.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/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 g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_nearbyint.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/s_nearbyint.cpp gcc -o build/opt/third_party/wiredtiger/src/meta/meta_ckpt.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/meta/meta_ckpt.c In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/s/query/router_stage_pipeline.h:34, from src/mongo/s/query/router_stage_pipeline.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/icu4c-57.1/source/common/ustrtrns.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustrtrns.cpp gcc -o build/opt/third_party/unwind/dist/src/mi/flush_cache.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/mi/flush_cache.c In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/s/query/router_stage_pipeline.h:34, from src/mongo/s/query/router_stage_pipeline.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call g++ -o build/opt/mongo/rpc/metadata/egress_metadata_hook_list.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/metadata/egress_metadata_hook_list.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:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/s/query/router_stage_pipeline.h:34, from src/mongo/s/query/router_stage_pipeline.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/s/query/router_stage_pipeline.h:34, from src/mongo/s/query/router_stage_pipeline.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/scripting/mozjs/objectwrapper.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/objectwrapper.cpp Generating build/opt/mongo/client/replica_set_monitor_server_parameters_gen.cpp g++ -o build/opt/mongo/client/replica_set_monitor_server_parameters_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/client/replica_set_monitor_server_parameters_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/client/replica_set_monitor_server_parameters_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/replica_set_monitor_server_parameters_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/repl_set_get_status_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_get_status_cmd.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/replica_set_monitor_server_parameters_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/replica_set_monitor_server_parameters_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/logical_session_id_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/logical_session_id_helpers.cpp g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:34, from src/mongo/db/repl/repl_set_get_status_cmd.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:34, from src/mongo/db/repl/repl_set_get_status_cmd.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:34, from src/mongo/db/repl/repl_set_get_status_cmd.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:34, from src/mongo/db/repl/repl_set_get_status_cmd.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/exec/trial_stage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/trial_stage.cpp gcc -o build/opt/third_party/wiredtiger/src/btree/bt_misc.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_misc.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/icu4c-57.1/source/common/uiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uiter.cpp g++ -o build/opt/mongo/s/query/cluster_aggregation_planner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/query/cluster_aggregation_planner.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/vm/ArgumentsObject.cpp:19, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:20: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:13, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:13, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:13, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:13, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:13, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:13, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:13, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:13, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:13, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/util/Text.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/exec/trial_stage.h:32, from src/mongo/db/exec/trial_stage.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/extract/js/src/vm/EnvironmentObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/ArgumentsObject-inl.h:14, from src/third_party/mozjs-60/extract/js/src/vm/ArgumentsObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:20: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:20: src/third_party/mozjs-60/extract/js/src/vm/ArgumentsObject.cpp: In instantiation of 'static js::ArgumentsObject* js::ArgumentsObject::create(JSContext*, JS::HandleFunction, unsigned int, CopyArgs&) [with CopyArgs = CopyFrameArgs; JS::HandleFunction = JS::Handle]': src/third_party/mozjs-60/extract/js/src/vm/ArgumentsObject.cpp:333:38: required from here src/third_party/mozjs-60/extract/js/src/vm/ArgumentsObject.cpp:306:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::GCPtrValue' {aka 'class js::GCPtr'} with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 306 | memset(data->args, 0, numArgs * sizeof(Value)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:13, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:453:7: note: 'js::GCPtrValue' {aka 'class js::GCPtr'} declared here 453 | class GCPtr : public WriteBarrieredBase | ^~~~~ In file included from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:20: src/third_party/mozjs-60/extract/js/src/vm/ArgumentsObject.cpp: In instantiation of 'static js::ArgumentsObject* js::ArgumentsObject::create(JSContext*, JS::HandleFunction, unsigned int, CopyArgs&) [with CopyArgs = CopyScriptFrameIterArgs; JS::HandleFunction = JS::Handle]': src/third_party/mozjs-60/extract/js/src/vm/ArgumentsObject.cpp:346:18: required from here src/third_party/mozjs-60/extract/js/src/vm/ArgumentsObject.cpp:306:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::GCPtrValue' {aka 'class js::GCPtr'} with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 306 | memset(data->args, 0, numArgs * sizeof(Value)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:13, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:453:7: note: 'js::GCPtrValue' {aka 'class js::GCPtr'} declared here 453 | class GCPtr : public WriteBarrieredBase | ^~~~~ In file included from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:20: src/third_party/mozjs-60/extract/js/src/vm/ArgumentsObject.cpp: In instantiation of 'static js::ArgumentsObject* js::ArgumentsObject::create(JSContext*, JS::HandleFunction, unsigned int, CopyArgs&) [with CopyArgs = CopyJitFrameArgs; JS::HandleFunction = JS::Handle]': src/third_party/mozjs-60/extract/js/src/vm/ArgumentsObject.cpp:365:18: required from here src/third_party/mozjs-60/extract/js/src/vm/ArgumentsObject.cpp:306:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::GCPtrValue' {aka 'class js::GCPtr'} with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 306 | memset(data->args, 0, numArgs * sizeof(Value)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:13, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:453:7: note: 'js::GCPtrValue' {aka 'class js::GCPtr'} declared here 453 | class GCPtr : public WriteBarrieredBase | ^~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/Value.h:24, from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/util/Text.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/util/Text.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/util/Text.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/util/Text.h:19, from src/third_party/mozjs-60/extract/js/src/util/Text.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/query/plan_yield_policy.h:34, from src/mongo/db/exec/trial_stage.h:33, from src/mongo/db/exec/trial_stage.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/query/plan_yield_policy.h:34, from src/mongo/db/exec/trial_stage.h:33, from src/mongo/db/exec/trial_stage.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/query/plan_yield_policy.h:34, from src/mongo/db/exec/trial_stage.h:33, from src/mongo/db/exec/trial_stage.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_aggregation_planner.h:34, from src/mongo/s/query/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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/s/query/cluster_aggregation_planner.h:34, from src/mongo/s/query/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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/s/query/cluster_aggregation_planner.h:34, from src/mongo/s/query/cluster_aggregation_planner.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_aggregation_planner.h:34, from src/mongo/s/query/cluster_aggregation_planner.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/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 g++ -o build/opt/mongo/util/net/ssl_types.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/ssl_types.cpp g++ -o build/opt/mongo/bson/bson_depth.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/bson_depth.cpp g++ -o build/opt/mongo/db/storage/storage_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/storage_init.cpp g++ -o build/opt/mongo/util/signal_win32.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/signal_win32.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/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 g++ -o build/opt/mongo/db/server_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/server_options.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/storage_init.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/storage_init.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/storage_init.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/storage_init.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/util/safe_num.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/safe_num.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_aggregation_planner.h:34, from src/mongo/s/query/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::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/icu4c-57.1/source/common/uscript.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uscript.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/query/parsed_distinct.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/parsed_distinct.cpp g++ -o build/opt/mongo/util/stacktrace_posix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/stacktrace_posix.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/parsed_distinct.h:36, from src/mongo/db/query/parsed_distinct.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/parsed_distinct.h:36, from src/mongo/db/query/parsed_distinct.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/parsed_distinct.h:36, from src/mongo/db/query/parsed_distinct.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/parsed_distinct.h:36, from src/mongo/db/query/parsed_distinct.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/dbmessage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/dbmessage.cpp g++ -o build/opt/mongo/db/curop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/curop.cpp g++ -o build/opt/mongo/db/pipeline/document_source_tee_consumer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_tee_consumer.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/index/hash_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index/hash_access_method.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_tee_consumer.h:35, from src/mongo/db/pipeline/document_source_tee_consumer.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/curop.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/curop.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_tee_consumer.h:35, from src/mongo/db/pipeline/document_source_tee_consumer.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/range_arithmetic.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/range_arithmetic.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/curop.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/curop.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_tee_consumer.h:35, from src/mongo/db/pipeline/document_source_tee_consumer.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_tee_consumer.h:35, from src/mongo/db/pipeline/document_source_tee_consumer.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/client/shard_factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/client/shard_factory.cpp 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 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 g++ -o build/opt/mongo/db/commands/getmore_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/getmore_cmd.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /usr/bin/python3 src/mongo/base/generate_error_codes.py src/mongo/base/error_codes.yml src/mongo/shell/error_codes.tpl.js build/opt/mongo/shell/error_codes.js src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /usr/bin/python3 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/check_log.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/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 g++ -o build/opt/mongo/shell/mongo.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/shell/mongo.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/getmore_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/getmore_cmd.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/transport/ismaster_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/transport/ismaster_metrics.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/getmore_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/getmore_cmd.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/transport/session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/transport/session.cpp g++ -o build/opt/mongo/transport/transport_layer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/transport/transport_layer.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 g++ -o build/opt/mongo/db/server_recovery.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/server_recovery.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/operation_key_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/operation_key_manager.cpp ar rcsTD build/opt/mongo/transport/libtransport_layer_common.a build/opt/mongo/transport/ismaster_metrics.o 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 g++ -o build/opt/mongo/db/client.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/client.cpp g++ -o build/opt/mongo/db/operation_context.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/operation_context.cpp g++ -o build/opt/mongo/db/repl_set_member_in_standalone_mode.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl_set_member_in_standalone_mode.cpp g++ -o build/opt/mongo/db/service_context.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/service_context.cpp g++ -o build/opt/mongo/db/operation_id.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/operation_id.cpp g++ -o build/opt/mongo/db/repl/repl_settings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/repl_settings.cpp g++ -o build/opt/mongo/db/pipeline/exchange_spec_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/pipeline/exchange_spec_gen.cpp g++ -o build/opt/mongo/db/update/pull_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/pull_node.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/service_context.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/service_context.cpp:44: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/service_context.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/exchange_spec_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/service_context.cpp:44: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call Generating build/opt/mongo/db/mongod_options_legacy_gen.cpp g++ -o build/opt/mongo/db/mongod_options_legacy_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/mongod_options_legacy_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/exchange_spec_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/update/update_leaf_node.h:32, from src/mongo/db/update/modifier_node.h:39, from src/mongo/db/update/array_culling_node.h:35, from src/mongo/db/update/pull_node.h:35, from src/mongo/db/update/pull_node.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/exchange_spec_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/exchange_spec_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/update/pull_node.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/update/pull_node.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/update/pull_node.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mongod_options_legacy_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mongod_options_legacy_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mongod_options_legacy_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mongod_options_legacy_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/history/hs_conn.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/history/hs_conn.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/auth/sasl_scram_server_conversation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/sasl_scram_server_conversation.cpp g++ -o build/opt/mongo/util/net/http_client.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/http_client.cpp ar rcsTD build/opt/mongo/db/libservice_context.a build/opt/mongo/db/baton.o build/opt/mongo/db/client.o build/opt/mongo/db/default_baton.o build/opt/mongo/db/operation_context.o build/opt/mongo/db/operation_context_group.o build/opt/mongo/db/operation_id.o build/opt/mongo/db/operation_key_manager.o build/opt/mongo/db/service_context.o build/opt/mongo/db/server_recovery.o build/opt/mongo/db/unclean_shutdown.o build/opt/mongo/db/repl_set_member_in_standalone_mode.o Skipping ranlib for thin archive build/opt/mongo/db/libservice_context.a g++ -o build/opt/mongo/s/catalog/sharding_catalog_client_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/catalog/sharding_catalog_client_impl.cpp ar rcsTD build/opt/mongo/util/net/libhttp_client.a build/opt/mongo/util/net/http_client.o Skipping ranlib for thin archive build/opt/mongo/util/net/libhttp_client.a g++ -o build/opt/mongo/db/pipeline/document_source_list_sessions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_list_sessions.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_policies.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.h:33, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_policies.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.h:33, from src/mongo/db/auth/sasl_scram_server_conversation.cpp: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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_policies.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.h:33, from src/mongo/db/auth/sasl_scram_server_conversation.cpp: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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_policies.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.h:33, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:43: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/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 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 g++ -o build/opt/mongo/db/repl/repl_set_heartbeat_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_heartbeat_response.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/document_source_list_sessions.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/document_source_list_sessions.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/document_source_list_sessions.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:43: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::constraint::failed() [with Model = boost::algorithm::FinderConcept, __gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:99:13: required from 'void boost::algorithm::find_format_all(SequenceT&, FinderT, FormatterT) [with SequenceT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::first_finderF; FormatterT = boost::algorithm::detail::const_formatF >]' src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:652:48: required from 'void boost::algorithm::replace_all(SequenceT&, const Range1T&, const Range2T&) [with SequenceT = std::__cxx11::basic_string; Range1T = char [4]; Range2T = char [2]]' src/mongo/db/auth/sasl_scram_server_conversation.cpp:80:23: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:47:52: warning: 'this' pointer is null [-Wnonnull] 47 | static void failed() { ((Model*)0)->constraints(); } | ~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:22, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:35: src/third_party/boost-1.70.0/boost/algorithm/string/concept.hpp:40:18: note: in a call to non-static member function 'void boost::algorithm::FinderConcept::constraints() [with FinderT = boost::algorithm::detail::first_finderF; IteratorT = __gnu_cxx::__normal_iterator >]' 40 | void constraints() | ^~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/join.hpp:17, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::constraint::failed() [with Model = boost::algorithm::FormatterConcept >, boost::algorithm::detail::first_finderF, __gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:104:13: required from 'void boost::algorithm::find_format_all(SequenceT&, FinderT, FormatterT) [with SequenceT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::first_finderF; FormatterT = boost::algorithm::detail::const_formatF >]' src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:652:48: required from 'void boost::algorithm::replace_all(SequenceT&, const Range1T&, const Range2T&) [with SequenceT = std::__cxx11::basic_string; Range1T = char [4]; Range2T = char [2]]' src/mongo/db/auth/sasl_scram_server_conversation.cpp:80:23: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:47:52: warning: 'this' pointer is null [-Wnonnull] 47 | static void failed() { ((Model*)0)->constraints(); } | ~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:22, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:35: src/third_party/boost-1.70.0/boost/algorithm/string/concept.hpp:65:18: note: in a call to non-static member function 'void boost::algorithm::FormatterConcept::constraints() [with FormatterT = boost::algorithm::detail::const_formatF >; FinderT = boost::algorithm::detail::first_finderF; IteratorT = __gnu_cxx::__normal_iterator >]' 65 | void constraints() | ^~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_policies.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.h:33, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/boost-1.70.0/libs/filesystem/src/windows_file_codecvt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/filesystem/src/windows_file_codecvt.cpp g++ -o build/opt/mongo/util/secure_zero_memory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/secure_zero_memory.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/document_source_list_sessions.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/libsecure_zero_memory.a build/opt/mongo/util/secure_zero_memory.o Skipping ranlib for thin archive build/opt/mongo/util/libsecure_zero_memory.a ar rcsTD build/opt/mongo/db/storage/libjournal_flusher.a build/opt/mongo/db/storage/control/journal_flusher.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libjournal_flusher.a gcc -o build/opt/third_party/icu4c-57.1/source/common/ubidi.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ubidi.c src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/request_types/merge_chunk_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/request_types/merge_chunk_request_type.cpp g++ -o build/opt/mongo/db/kill_sessions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/kill_sessions.cpp Generating build/opt/mongo/db/free_mon/free_mon_options_gen.cpp g++ -o build/opt/mongo/db/free_mon/free_mon_options_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/free_mon/free_mon_options_gen.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/filesystem/src/utf8_codecvt_facet.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/filesystem/src/utf8_codecvt_facet.cpp ar rcsTD build/opt/mongo/db/catalog/libindex_build_block.a build/opt/mongo/db/catalog/index_build_block.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libindex_build_block.a 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 Skipping ranlib for thin archive build/opt/mongo/db/auth/librole_graph.a g++ -o build/opt/third_party/mozjs-60/extract/js/src/jsarray.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/js/src/jsarray.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 g++ -o build/opt/mongo/db/repl/last_vote.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/last_vote.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_options_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/repl_set_config.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_config.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_options_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_options_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_options_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/repl/last_vote.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/repl/last_vote.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/repl/last_vote.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/repl/last_vote.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/vm/UnboxedObject-inl.h:14, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:16, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/vm/EnvironmentObject.h:13, from src/third_party/mozjs-60/extract/js/src/vm/ArgumentsObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:15, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/vm/EnvironmentObject.h:13, from src/third_party/mozjs-60/extract/js/src/vm/ArgumentsObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:15, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/vm/EnvironmentObject.h:13, from src/third_party/mozjs-60/extract/js/src/vm/ArgumentsObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:15, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/repl/repl_set_config.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/extract/js/src/vm/EnvironmentObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/ArgumentsObject-inl.h:14, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:15, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/jsarray.cpp:3417:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/jsarrayinlines.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/repl/repl_set_config.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/is_master_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/is_master_response.cpp g++ -o build/opt/mongo/db/repl/repl_set_config_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/repl/repl_set_config_gen.cpp g++ -o build/opt/mongo/db/repl/repl_set_heartbeat_args_v1.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_heartbeat_args_v1.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/ubrk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ubrk.cpp gcc -o build/opt/third_party/wiredtiger/src/session/session_compact.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/session/session_compact.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/repl_set_config_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call gcc -o build/opt/third_party/icu4c-57.1/source/common/cstring.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/cstring.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/transport/transport_layer_asio.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/transport/transport_layer_asio.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/repl_set_config_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/repl/repl_set_heartbeat_args_v1.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/repl_set_config_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/repl_set_config_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/repl/repl_set_heartbeat_args_v1.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/repl/repl_set_heartbeat_args_v1.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/repl/repl_set_heartbeat_args_v1.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_sqrt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/e_sqrt.cpp src/third_party/mozjs-60/extract/modules/fdlibm/e_sqrt.cpp: In function 'double fdlibm::sqrt(double)': src/third_party/mozjs-60/extract/modules/fdlibm/e_sqrt.cpp:158:30: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int32_t' {aka 'int'} [-Wsign-compare] 158 | if(((t1&sign)==sign)&&(s1&sign)==0) s0 += 1; | ~~~~~~~~~^~~~~~ g++ -o build/opt/mongo/db/exec/cached_plan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/cached_plan.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.h:32, from src/mongo/db/exec/cached_plan.h:35, from src/mongo/db/exec/cached_plan.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.h:32, from src/mongo/db/exec/cached_plan.h:35, from src/mongo/db/exec/cached_plan.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.h:32, from src/mongo/db/exec/cached_plan.h:35, from src/mongo/db/exec/cached_plan.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.h:32, from src/mongo/db/exec/cached_plan.h:35, from src/mongo/db/exec/cached_plan.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/icu4c-57.1/source/common/utrace.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/utrace.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C Generating build/opt/mongo/db/concurrency/write_conflict_exception_gen.cpp g++ -o build/opt/mongo/db/concurrency/write_conflict_exception_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/concurrency/write_conflict_exception_gen.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_v1.o build/opt/mongo/db/repl/repl_set_heartbeat_response.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 build/opt/mongo/db/repl/repl_set_config_gen.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libreplica_set_messages.a ar rcsTD build/opt/third_party/libshim_fmt.a build/opt/third_party/shim_fmt.o Skipping ranlib for thin archive build/opt/third_party/libshim_fmt.a g++ -o build/opt/mongo/bson/simple_bsonelement_comparator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/simple_bsonelement_comparator.cpp Generating build/opt/mongo/db/commands/feature_compatibility_version_gen.cpp g++ -o build/opt/mongo/db/commands/feature_compatibility_version_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands/feature_compatibility_version_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from build/opt/mongo/db/concurrency/write_conflict_exception_gen.h:21, from build/opt/mongo/db/concurrency/write_conflict_exception_gen.cpp:9: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from build/opt/mongo/db/concurrency/write_conflict_exception_gen.h:21, from build/opt/mongo/db/concurrency/write_conflict_exception_gen.cpp:9: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from build/opt/mongo/db/concurrency/write_conflict_exception_gen.h:21, from build/opt/mongo/db/concurrency/write_conflict_exception_gen.cpp:9: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from build/opt/mongo/db/concurrency/write_conflict_exception_gen.h:21, from build/opt/mongo/db/concurrency/write_conflict_exception_gen.cpp:9: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/feature_compatibility_version_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/feature_compatibility_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/feature_compatibility_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/feature_compatibility_version_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/catalog/dist_lock_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/catalog/dist_lock_manager.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/initialize_snmp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/initialize_snmp.cpp ar rcsTD build/opt/mongo/db/concurrency/libwrite_conflict_exception.a build/opt/mongo/db/concurrency/write_conflict_exception.o build/opt/mongo/db/concurrency/write_conflict_exception_gen.o Skipping ranlib for thin archive build/opt/mongo/db/concurrency/libwrite_conflict_exception.a g++ -o build/opt/mongo/db/pipeline/document_source_project.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_project.cpp ar rcsTD build/opt/mongo/transport/libtransport_layer.a build/opt/mongo/transport/transport_layer_asio.o build/opt/mongo/transport/transport_options_gen.o g++ -o build/opt/mongo/db/update/modifier_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/modifier_node.cpp Skipping ranlib for thin archive build/opt/mongo/transport/libtransport_layer.a g++ -o build/opt/mongo/db/repl/oplog_entry_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/repl/oplog_entry_gen.cpp g++ -o build/opt/mongo/db/repl/oplog_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/oplog_entry.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_project.h:32, from src/mongo/db/pipeline/document_source_project.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/update/update_leaf_node.h:32, from src/mongo/db/update/modifier_node.h:39, from src/mongo/db/update/modifier_node.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_project.h:32, from src/mongo/db/pipeline/document_source_project.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/oplog_entry_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_project.h:32, from src/mongo/db/pipeline/document_source_project.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_project.h:32, from src/mongo/db/pipeline/document_source_project.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/update/path_support.h:40, from src/mongo/db/update/modifier_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/matcher/expression_where.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/expression_where.cpp g++ -o build/opt/mongo/scripting/mozjs/proxyscope.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/proxyscope.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/expression_where.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: 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: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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/expression_where.cpp:41: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/mongo_sources/freeOpToJSContext.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/mongo_sources/freeOpToJSContext.cpp 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:120:21: warning: redundant move in return statement [-Wredundant-move] 120 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_where.cpp:120:21: note: remove 'std::move' call 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 g++ -o build/opt/mongo/s/query/async_results_merger.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/query/async_results_merger.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/expression_where.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/libdowngraded_unique_indexes.a build/opt/mongo/db/storage/downgraded_unique_indexes.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libdowngraded_unique_indexes.a g++ -o build/opt/mongo/db/cursor_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/cursor_manager.cpp g++ -o build/opt/mongo/db/exec/working_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/working_set.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from build/opt/mongo/s/query/async_results_merger_params_gen.h:24, from src/mongo/s/query/async_results_merger.h:41, from src/mongo/s/query/async_results_merger.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from build/opt/mongo/s/query/async_results_merger_params_gen.h:24, from src/mongo/s/query/async_results_merger.h:41, from src/mongo/s/query/async_results_merger.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/mongo_sources/freeOpToJSContext.cpp:31: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/mongo_sources/freeOpToJSContext.cpp:33: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/mongo_sources/freeOpToJSContext.cpp:31: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/mongo_sources/freeOpToJSContext.cpp:33: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/mongo_sources/freeOpToJSContext.cpp:31: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/mongo_sources/freeOpToJSContext.cpp:33: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/mongo_sources/freeOpToJSContext.cpp:31: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/mongo_sources/freeOpToJSContext.cpp:33: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/mongo_sources/freeOpToJSContext.cpp:31: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/mongo_sources/freeOpToJSContext.cpp:33: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/mongo_sources/freeOpToJSContext.cpp:31: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/mongo_sources/freeOpToJSContext.cpp:33: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/mongo_sources/freeOpToJSContext.cpp:31: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/mongo_sources/freeOpToJSContext.cpp:33: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/mongo_sources/freeOpToJSContext.cpp:31: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/mongo_sources/freeOpToJSContext.cpp:33: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/mongo_sources/freeOpToJSContext.cpp:31: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/mongo_sources/freeOpToJSContext.cpp:31: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/mongo_sources/freeOpToJSContext.cpp:31: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/opt/third_party/mozjs-60/extract/mozglue/misc/ConditionVariable_posix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/mozglue/misc/ConditionVariable_posix.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from build/opt/mongo/s/query/async_results_merger_params_gen.h:24, from src/mongo/s/query/async_results_merger.h:41, from src/mongo/s/query/async_results_merger.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from build/opt/mongo/s/query/async_results_merger_params_gen.h:24, from src/mongo/s/query/async_results_merger.h:41, from src/mongo/s/query/async_results_merger.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/ftdc/file_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ftdc/file_manager.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:560:21: warning: redundant move in return statement [-Wredundant-move] 560 | return std::move(cursorResponse); | ~~~~~~~~~^~~~~~~~~~~~~~~~ src/mongo/s/query/async_results_merger.cpp:560:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:35, from src/mongo/db/cursor_manager.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:35, from src/mongo/db/cursor_manager.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:35, from src/mongo/db/cursor_manager.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:35, from src/mongo/db/cursor_manager.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/s/write_ops/write_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/write_ops/write_op.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from build/opt/mongo/s/query/async_results_merger_params_gen.h:24, from src/mongo/s/query/async_results_merger.h:41, from src/mongo/s/query/async_results_merger.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/write_ops/batch_write_exec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/write_ops/batch_write_exec.cpp g++ -o build/opt/mongo/s/write_ops/batch_write_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/write_ops/batch_write_op.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/write_ops/write_op.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/write_ops/write_op.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/write_ops/write_op.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/write_ops/write_op.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/s/database_sharding_state.h:32, from src/mongo/s/write_ops/batch_write_op.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/s/database_sharding_state.h:32, from src/mongo/s/write_ops/batch_write_op.cpp:40: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/write_ops/batch_write_exec.cpp: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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/s/database_sharding_state.h:32, from src/mongo/s/write_ops/batch_write_op.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/s/database_sharding_state.h:32, from src/mongo/s/write_ops/batch_write_op.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/write_ops/batch_write_exec.cpp:49: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/write_ops/batch_write_exec.cpp: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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/write_ops/batch_write_exec.cpp:49: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/net/libopenssl_init.a build/opt/mongo/util/net/openssl_init.o Skipping ranlib for thin archive build/opt/mongo/util/net/libopenssl_init.a g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/record_ostream.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/record_ostream.cpp ar rcsTD build/opt/mongo/util/libcaching.a build/opt/mongo/util/read_through_cache.o Skipping ranlib for thin archive build/opt/mongo/util/libcaching.a g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/syslog_backend.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/syslog_backend.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/list_collections.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/list_collections.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/query/document_source_merge_cursors.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/query/document_source_merge_cursors.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/sessions_collection_rs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/sessions_collection_rs.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/list_collections.cpp:41: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call 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 Generating build/opt/mongo/db/commands/create_gen.cpp g++ -o build/opt/mongo/db/commands/dbcommands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/dbcommands.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/list_collections.cpp:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/s/query/document_source_merge_cursors.h:34, from src/mongo/s/query/document_source_merge_cursors.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/s/query/document_source_merge_cursors.h:34, from src/mongo/s/query/document_source_merge_cursors.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/s/query/document_source_merge_cursors.h:34, from src/mongo/s/query/document_source_merge_cursors.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/s/query/document_source_merge_cursors.h:34, from src/mongo/s/query/document_source_merge_cursors.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/create_collection.h:34, from src/mongo/db/commands/dbcommands.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/create_collection.h:34, from src/mongo/db/commands/dbcommands.cpp:50: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libsessions_collection_rs.a build/opt/mongo/db/sessions_collection_rs.o Skipping ranlib for thin archive build/opt/mongo/db/libsessions_collection_rs.a g++ -o build/opt/third_party/icu4c-57.1/source/common/uvectr64.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uvectr64.cpp g++ -o build/opt/mongo/s/shard_invalidated_for_targeting_exception.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/shard_invalidated_for_targeting_exception.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/create_collection.h:34, from src/mongo/db/commands/dbcommands.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/create_collection.h:34, from src/mongo/db/commands/dbcommands.cpp:50: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/os_posix/os_fallocate.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_fallocate.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/util/net/socket_utils.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/socket_utils.cpp g++ -o build/opt/mongo/db/introspect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/introspect.cpp g++ -o build/opt/mongo/db/repl/speculative_majority_read_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/speculative_majority_read_info.cpp g++ -o build/opt/mongo/crypto/sha256_block.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/crypto/sha256_block.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/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 g++ -o build/opt/mongo/db/operation_killer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/operation_killer.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/introspect.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/introspect.cpp:40: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libspeculative_majority_read_info.a build/opt/mongo/db/repl/speculative_majority_read_info.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libspeculative_majority_read_info.a g++ -o build/opt/mongo/db/commands/create_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands/create_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/introspect.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/introspect.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/granularity_rounder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/granularity_rounder.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/create_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/liboperation_killer.a build/opt/mongo/db/operation_killer.o Skipping ranlib for thin archive build/opt/mongo/db/liboperation_killer.a g++ -o build/opt/mongo/db/pipeline/granularity_rounder_preferred_numbers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/create_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/granularity_rounder.h:38, from src/mongo/db/pipeline/granularity_rounder.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/create_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/create_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/granularity_rounder.h:38, from src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/request_types/balancer_collection_status_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/request_types/balancer_collection_status_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/server_options_server_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/server_options_server_helpers.cpp 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 gcc -o build/opt/third_party/wiredtiger/src/support/crypto.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/crypto.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/balancer_collection_status_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/catalog/replset_dist_lock_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/catalog/replset_dist_lock_manager.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/balancer_collection_status_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/exec/sort_key_generator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/sort_key_generator.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/balancer_collection_status_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/balancer_collection_status_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/exec/sort_key_generator.h:35, from src/mongo/db/exec/sort_key_generator.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/lexical_cast.hpp:30, from src/third_party/boost-1.70.0/boost/program_options/value_semantic.hpp:14, from src/third_party/boost-1.70.0/boost/program_options/options_description.hpp:13, from src/third_party/boost-1.70.0/boost/program_options.hpp:15, from src/mongo/util/options_parser/option_section.h:33, from src/mongo/db/server_options_server_helpers.h:36, from src/mongo/db/server_options_server_helpers.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::constraint::failed() [with Model = boost::algorithm::FinderConcept >, __gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:77:13: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::storeServerOptions(const mongo::optionenvironment::Environment&)::]' src/mongo/db/server_options_server_helpers.cpp:380:25: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:47:52: warning: 'this' pointer is null [-Wnonnull] 47 | static void failed() { ((Model*)0)->constraints(); } | ~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:26, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/mongo/db/server_options_server_helpers.cpp:36: src/third_party/boost-1.70.0/boost/algorithm/string/concept.hpp:40:18: note: in a call to non-static member function 'void boost::algorithm::FinderConcept::constraints() [with FinderT = boost::algorithm::detail::token_finderF >; IteratorT = __gnu_cxx::__normal_iterator >]' 40 | void constraints() | ^~~~~~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/lexical_cast.hpp:30, from src/third_party/boost-1.70.0/boost/program_options/value_semantic.hpp:14, from src/third_party/boost-1.70.0/boost/program_options/options_description.hpp:13, from src/third_party/boost-1.70.0/boost/program_options.hpp:15, from src/mongo/util/options_parser/option_section.h:33, from src/mongo/db/server_options_server_helpers.h:36, from src/mongo/db/server_options_server_helpers.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: required from 'struct boost::CopyConstructible<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:125:16: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: [ skipping 14 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::storeServerOptions(const mongo::optionenvironment::Environment&)::]' src/mongo/db/server_options_server_helpers.cpp:380:25: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/lexical_cast.hpp:30, from src/third_party/boost-1.70.0/boost/program_options/value_semantic.hpp:14, from src/third_party/boost-1.70.0/boost/program_options/options_description.hpp:13, from src/third_party/boost-1.70.0/boost/program_options.hpp:15, from src/mongo/util/options_parser/option_section.h:33, from src/mongo/db/server_options_server_helpers.h:36, from src/mongo/db/server_options_server_helpers.cpp:32: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::CopyConstructible<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/lexical_cast.hpp:30, from src/third_party/boost-1.70.0/boost/program_options/value_semantic.hpp:14, from src/third_party/boost-1.70.0/boost/program_options/options_description.hpp:13, from src/third_party/boost-1.70.0/boost/program_options.hpp:15, from src/mongo/util/options_parser/option_section.h:33, from src/mongo/db/server_options_server_helpers.h:36, from src/mongo/db/server_options_server_helpers.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:114:7: [ skipping 18 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::storeServerOptions(const mongo::optionenvironment::Environment&)::]' src/mongo/db/server_options_server_helpers.cpp:380:25: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/lexical_cast.hpp:30, from src/third_party/boost-1.70.0/boost/program_options/value_semantic.hpp:14, from src/third_party/boost-1.70.0/boost/program_options/options_description.hpp:13, from src/third_party/boost-1.70.0/boost/program_options.hpp:15, from src/mongo/util/options_parser/option_section.h:33, from src/mongo/db/server_options_server_helpers.h:36, from src/mongo/db/server_options_server_helpers.cpp:32: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/lexical_cast.hpp:30, from src/third_party/boost-1.70.0/boost/program_options/value_semantic.hpp:14, from src/third_party/boost-1.70.0/boost/program_options/options_description.hpp:13, from src/third_party/boost-1.70.0/boost/program_options.hpp:15, from src/mongo/util/options_parser/option_section.h:33, from src/mongo/db/server_options_server_helpers.h:36, from src/mongo/db/server_options_server_helpers.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:114:7: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 13 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::storeServerOptions(const mongo::optionenvironment::Environment&)::]' src/mongo/db/server_options_server_helpers.cpp:380:25: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/lexical_cast.hpp:30, from src/third_party/boost-1.70.0/boost/program_options/value_semantic.hpp:14, from src/third_party/boost-1.70.0/boost/program_options/options_description.hpp:13, from src/third_party/boost-1.70.0/boost/program_options.hpp:15, from src/mongo/util/options_parser/option_section.h:33, from src/mongo/db/server_options_server_helpers.h:36, from src/mongo/db/server_options_server_helpers.cpp:32: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::incrementable_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/lexical_cast.hpp:30, from src/third_party/boost-1.70.0/boost/program_options/value_semantic.hpp:14, from src/third_party/boost-1.70.0/boost/program_options/options_description.hpp:13, from src/third_party/boost-1.70.0/boost/program_options.hpp:15, from src/mongo/util/options_parser/option_section.h:33, from src/mongo/db/server_options_server_helpers.h:36, from src/mongo/db/server_options_server_helpers.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:136:13: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 13 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::storeServerOptions(const mongo::optionenvironment::Environment&)::]' src/mongo/db/server_options_server_helpers.cpp:380:25: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/lexical_cast.hpp:30, from src/third_party/boost-1.70.0/boost/program_options/value_semantic.hpp:14, from src/third_party/boost-1.70.0/boost/program_options/options_description.hpp:13, from src/third_party/boost-1.70.0/boost/program_options.hpp:15, from src/mongo/util/options_parser/option_section.h:33, from src/mongo/db/server_options_server_helpers.h:36, from src/mongo/db/server_options_server_helpers.cpp:32: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/lexical_cast.hpp:30, from src/third_party/boost-1.70.0/boost/program_options/value_semantic.hpp:14, from src/third_party/boost-1.70.0/boost/program_options/options_description.hpp:13, from src/third_party/boost-1.70.0/boost/program_options.hpp:15, from src/mongo/util/options_parser/option_section.h:33, from src/mongo/db/server_options_server_helpers.h:36, from src/mongo/db/server_options_server_helpers.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: required from 'struct boost::EqualityComparable<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 13 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::storeServerOptions(const mongo::optionenvironment::Environment&)::]' src/mongo/db/server_options_server_helpers.cpp:380:25: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/lexical_cast.hpp:30, from src/third_party/boost-1.70.0/boost/program_options/value_semantic.hpp:14, from src/third_party/boost-1.70.0/boost/program_options/options_description.hpp:13, from src/third_party/boost-1.70.0/boost/program_options.hpp:15, from src/mongo/util/options_parser/option_section.h:33, from src/mongo/db/server_options_server_helpers.h:36, from src/mongo/db/server_options_server_helpers.cpp:32: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::EqualityComparable<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/lexical_cast.hpp:30, from src/third_party/boost-1.70.0/boost/program_options/value_semantic.hpp:14, from src/third_party/boost-1.70.0/boost/program_options/options_description.hpp:13, from src/third_party/boost-1.70.0/boost/program_options.hpp:15, from src/mongo/util/options_parser/option_section.h:33, from src/mongo/db/server_options_server_helpers.h:36, from src/mongo/db/server_options_server_helpers.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/range/concepts.hpp:152:13: [ skipping 17 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::storeServerOptions(const mongo::optionenvironment::Environment&)::]' src/mongo/db/server_options_server_helpers.cpp:380:25: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/lexical_cast.hpp:30, from src/third_party/boost-1.70.0/boost/program_options/value_semantic.hpp:14, from src/third_party/boost-1.70.0/boost/program_options/options_description.hpp:13, from src/third_party/boost-1.70.0/boost/program_options.hpp:15, from src/mongo/util/options_parser/option_section.h:33, from src/mongo/db/server_options_server_helpers.h:36, from src/mongo/db/server_options_server_helpers.cpp:32: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/lexical_cast.hpp:30, from src/third_party/boost-1.70.0/boost/program_options/value_semantic.hpp:14, from src/third_party/boost-1.70.0/boost/program_options/options_description.hpp:13, from src/third_party/boost-1.70.0/boost/program_options.hpp:15, from src/mongo/util/options_parser/option_section.h:33, from src/mongo/db/server_options_server_helpers.h:36, from src/mongo/db/server_options_server_helpers.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:152:13: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ > >)>' src/third_party/boost-1.70.0/boost/range/concepts.hpp:278:9: [ skipping 12 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::storeServerOptions(const mongo::optionenvironment::Environment&)::]' src/mongo/db/server_options_server_helpers.cpp:380:25: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/lexical_cast.hpp:30, from src/third_party/boost-1.70.0/boost/program_options/value_semantic.hpp:14, from src/third_party/boost-1.70.0/boost/program_options/options_description.hpp:13, from src/third_party/boost-1.70.0/boost/program_options.hpp:15, from src/mongo/util/options_parser/option_section.h:33, from src/mongo/db/server_options_server_helpers.h:36, from src/mongo/db/server_options_server_helpers.cpp:32: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::single_pass_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/lexical_cast.hpp:30, from src/third_party/boost-1.70.0/boost/program_options/value_semantic.hpp:14, from src/third_party/boost-1.70.0/boost/program_options/options_description.hpp:13, from src/third_party/boost-1.70.0/boost/program_options.hpp:15, from src/mongo/util/options_parser/option_section.h:33, from src/mongo/db/server_options_server_helpers.h:36, from src/mongo/db/server_options_server_helpers.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ > >)>' src/third_party/boost-1.70.0/boost/range/concepts.hpp:278:9: [ skipping 12 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::storeServerOptions(const mongo::optionenvironment::Environment&)::]' src/mongo/db/server_options_server_helpers.cpp:380:25: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/lexical_cast.hpp:30, from src/third_party/boost-1.70.0/boost/program_options/value_semantic.hpp:14, from src/third_party/boost-1.70.0/boost/program_options/options_description.hpp:13, from src/third_party/boost-1.70.0/boost/program_options.hpp:15, from src/mongo/util/options_parser/option_section.h:33, from src/mongo/db/server_options_server_helpers.h:36, from src/mongo/db/server_options_server_helpers.cpp:32: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/lexical_cast.hpp:30, from src/third_party/boost-1.70.0/boost/program_options/value_semantic.hpp:14, from src/third_party/boost-1.70.0/boost/program_options/options_description.hpp:13, from src/third_party/boost-1.70.0/boost/program_options.hpp:15, from src/mongo/util/options_parser/option_section.h:33, from src/mongo/db/server_options_server_helpers.h:36, from src/mongo/db/server_options_server_helpers.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:278:9: required from 'struct boost::SinglePassRangeConcept > > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept > > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ > > >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: [ skipping 7 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::storeServerOptions(const mongo::optionenvironment::Environment&)::]' src/mongo/db/server_options_server_helpers.cpp:380:25: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/lexical_cast.hpp:30, from src/third_party/boost-1.70.0/boost/program_options/value_semantic.hpp:14, from src/third_party/boost-1.70.0/boost/program_options/options_description.hpp:13, from src/third_party/boost-1.70.0/boost/program_options.hpp:15, from src/mongo/util/options_parser/option_section.h:33, from src/mongo/db/server_options_server_helpers.h:36, from src/mongo/db/server_options_server_helpers.cpp:32: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::range_detail::SinglePassIteratorConcept::~SinglePassIteratorConcept() [with Iterator = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 158 | BOOST_CONCEPT_USAGE(SinglePassIteratorConcept) | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/lexical_cast.hpp:30, from src/third_party/boost-1.70.0/boost/program_options/value_semantic.hpp:14, from src/third_party/boost-1.70.0/boost/program_options/options_description.hpp:13, from src/third_party/boost-1.70.0/boost/program_options.hpp:15, from src/mongo/util/options_parser/option_section.h:33, from src/mongo/db/server_options_server_helpers.h:36, from src/mongo/db/server_options_server_helpers.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: required from 'struct boost::SinglePassRangeConcept > > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept > > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ > > >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: [ skipping 7 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::storeServerOptions(const mongo::optionenvironment::Environment&)::]' src/mongo/db/server_options_server_helpers.cpp:380:25: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/lexical_cast.hpp:30, from src/third_party/boost-1.70.0/boost/program_options/value_semantic.hpp:14, from src/third_party/boost-1.70.0/boost/program_options/options_description.hpp:13, from src/third_party/boost-1.70.0/boost/program_options.hpp:15, from src/mongo/util/options_parser/option_section.h:33, from src/mongo/db/server_options_server_helpers.h:36, from src/mongo/db/server_options_server_helpers.cpp:32: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::SinglePassRangeConcept > > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/lexical_cast.hpp:30, from src/third_party/boost-1.70.0/boost/program_options/value_semantic.hpp:14, from src/third_party/boost-1.70.0/boost/program_options/options_description.hpp:13, from src/third_party/boost-1.70.0/boost/program_options.hpp:15, from src/mongo/util/options_parser/option_section.h:33, from src/mongo/db/server_options_server_helpers.h:36, from src/mongo/db/server_options_server_helpers.cpp:32: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::SinglePassRangeConcept > > >]': src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range<__gnu_cxx::__normal_iterator > >; SinglePassRange2 = boost::iterator_range<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = __gnu_cxx::__normal_iterator >; Iterator2T = __gnu_cxx::__normal_iterator >]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = __gnu_cxx::__normal_iterator >]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; Facade2 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:900:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator==(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; V1 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; V2 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/third_party/boost-1.70.0/boost/iterator/iterator_adaptor.hpp:305:29: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::storeServerOptions(const mongo::optionenvironment::Environment&)::]' src/mongo/db/server_options_server_helpers.cpp:380:25: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/lexical_cast.hpp:30, from src/third_party/boost-1.70.0/boost/program_options/value_semantic.hpp:14, from src/third_party/boost-1.70.0/boost/program_options/options_description.hpp:13, from src/third_party/boost-1.70.0/boost/program_options.hpp:15, from src/mongo/util/options_parser/option_section.h:33, from src/mongo/db/server_options_server_helpers.h:36, from src/mongo/db/server_options_server_helpers.cpp:32: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::SinglePassRangeConcept::~SinglePassRangeConcept() [with T = const boost::iterator_range<__gnu_cxx::__normal_iterator > >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 284 | BOOST_CONCEPT_USAGE(SinglePassRangeConcept) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::CopyConstructible<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: required from 'struct boost::CopyConstructible<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:125:16: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: [ skipping 15 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::storeServerOptions(const mongo::optionenvironment::Environment&)::]' src/mongo/db/server_options_server_helpers.cpp:380:25: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::CopyConstructible::~CopyConstructible() [with TT = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 167 | BOOST_CONCEPT_USAGE(CopyConstructible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 19 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::storeServerOptions(const mongo::optionenvironment::Environment&)::]' src/mongo/db/server_options_server_helpers.cpp:380:25: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::incrementable_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/range/concepts.hpp:136:13: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: [ skipping 14 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::storeServerOptions(const mongo::optionenvironment::Environment&)::]' src/mongo/db/server_options_server_helpers.cpp:380:25: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::range_detail::IncrementableIteratorConcept::~IncrementableIteratorConcept() [with Iterator = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:136:13: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 136 | BOOST_CONCEPT_USAGE(IncrementableIteratorConcept) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::EqualityComparable<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: required from 'struct boost::EqualityComparable<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: [ skipping 14 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::storeServerOptions(const mongo::optionenvironment::Environment&)::]' src/mongo/db/server_options_server_helpers.cpp:380:25: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::EqualityComparable::~EqualityComparable() [with TT = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 233 | BOOST_CONCEPT_USAGE(EqualityComparable) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 18 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::storeServerOptions(const mongo::optionenvironment::Environment&)::]' src/mongo/db/server_options_server_helpers.cpp:380:25: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::single_pass_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 13 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::storeServerOptions(const mongo::optionenvironment::Environment&)::]' src/mongo/db/server_options_server_helpers.cpp:380:25: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::range_detail::SinglePassIteratorConcept::~SinglePassIteratorConcept() [with Iterator = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 158 | BOOST_CONCEPT_USAGE(SinglePassIteratorConcept) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::SinglePassRangeConcept > > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > > >]' src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: required from 'struct boost::SinglePassRangeConcept > > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept > > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 8 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V1 = std::__cxx11::basic_string; TC1 = boost::iterators::forward_traversal_tag; Reference1 = std::__cxx11::basic_string; Difference1 = long int; Derived2 = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; V2 = std::__cxx11::basic_string; TC2 = boost::iterators::forward_traversal_tag; Reference2 = std::__cxx11::basic_string; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' /usr/include/c++/11/bits/stl_vector.h:1562:21: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]' /usr/include/c++/11/bits/stl_vector.h:657:23: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = boost::iterators::transform_iterator, __gnu_cxx::__normal_iterator > >, boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >, boost::use_default, boost::use_default>; = void; _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator >]' src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:178:31: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = std::__cxx11::basic_string; PredicateT = mongo::storeServerOptions(const mongo::optionenvironment::Environment&)::]' src/mongo/db/server_options_server_helpers.cpp:380:25: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::SinglePassRangeConcept::~SinglePassRangeConcept() [with T = const boost::iterator_range<__gnu_cxx::__normal_iterator > >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 284 | BOOST_CONCEPT_USAGE(SinglePassRangeConcept) | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/sort_key_generator.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/executor/hedging_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/executor/hedging_metrics.cpp gcc -o build/opt/third_party/unwind/dist/src/x86_64/regname.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/x86_64/regname.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/client/mongo_uri.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/mongo_uri.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/util/options_parser/startup_option_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/options_parser/startup_option_init.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/punycode.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/punycode.cpp g++ -o build/opt/mongo/db/auth/authorization_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/authorization_manager.cpp ar rcsTD build/opt/mongo/executor/libhedging_metrics.a build/opt/mongo/executor/hedging_metrics.o Skipping ranlib for thin archive build/opt/mongo/executor/libhedging_metrics.a g++ -o build/opt/mongo/db/auth/role_name.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/role_name.cpp In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: required from 'struct boost::CopyConstructible<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:125:16: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: [ skipping 3 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'typename boost::range_difference::type boost::range::count(const SinglePassRange&, const Value&) [with SinglePassRange = std::__cxx11::basic_string; Value = char; typename boost::range_difference::type = long int]' src/mongo/client/mongo_uri.cpp:543:29: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::CopyConstructible<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:114:7: [ skipping 7 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'typename boost::range_difference::type boost::range::count(const SinglePassRange&, const Value&) [with SinglePassRange = std::__cxx11::basic_string; Value = char; typename boost::range_difference::type = long int]' src/mongo/client/mongo_uri.cpp:543:29: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:114:7: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'typename boost::range_difference::type boost::range::count(const SinglePassRange&, const Value&) [with SinglePassRange = std::__cxx11::basic_string; Value = char; typename boost::range_difference::type = long int]' src/mongo/client/mongo_uri.cpp:543:29: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::incrementable_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:136:13: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'typename boost::range_difference::type boost::range::count(const SinglePassRange&, const Value&) [with SinglePassRange = std::__cxx11::basic_string; Value = char; typename boost::range_difference::type = long int]' src/mongo/client/mongo_uri.cpp:543:29: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: required from 'struct boost::EqualityComparable<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'typename boost::range_difference::type boost::range::count(const SinglePassRange&, const Value&) [with SinglePassRange = std::__cxx11::basic_string; Value = char; typename boost::range_difference::type = long int]' src/mongo/client/mongo_uri.cpp:543:29: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::EqualityComparable<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/range/concepts.hpp:152:13: [ skipping 6 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'typename boost::range_difference::type boost::range::count(const SinglePassRange&, const Value&) [with SinglePassRange = std::__cxx11::basic_string; Value = char; typename boost::range_difference::type = long int]' src/mongo/client/mongo_uri.cpp:543:29: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:152:13: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'typename boost::range_difference::type boost::range::count(const SinglePassRange&, const Value&) [with SinglePassRange = std::__cxx11::basic_string; Value = char; typename boost::range_difference::type = long int]' src/mongo/client/mongo_uri.cpp:543:29: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::single_pass_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'typename boost::range_difference::type boost::range::count(const SinglePassRange&, const Value&) [with SinglePassRange = std::__cxx11::basic_string; Value = char; typename boost::range_difference::type = long int]' src/mongo/client/mongo_uri.cpp:543:29: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:278:9: required from 'struct boost::SinglePassRangeConcept >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'typename boost::range_difference::type boost::range::count(const SinglePassRange&, const Value&) [with SinglePassRange = std::__cxx11::basic_string; Value = char; typename boost::range_difference::type = long int]' src/mongo/client/mongo_uri.cpp:543:29: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::range_detail::SinglePassIteratorConcept::~SinglePassIteratorConcept() [with Iterator = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 158 | BOOST_CONCEPT_USAGE(SinglePassIteratorConcept) | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: required from 'struct boost::SinglePassRangeConcept >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'typename boost::range_difference::type boost::range::count(const SinglePassRange&, const Value&) [with SinglePassRange = std::__cxx11::basic_string; Value = char; typename boost::range_difference::type = long int]' src/mongo/client/mongo_uri.cpp:543:29: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::SinglePassRangeConcept >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::SinglePassRangeConcept >]': src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'typename boost::range_difference::type boost::range::count(const SinglePassRange&, const Value&) [with SinglePassRange = std::__cxx11::basic_string; Value = char; typename boost::range_difference::type = long int]' src/mongo/client/mongo_uri.cpp:543:29: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::SinglePassRangeConcept::~SinglePassRangeConcept() [with T = const std::__cxx11::basic_string]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 284 | BOOST_CONCEPT_USAGE(SinglePassRangeConcept) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::CopyConstructible<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: required from 'struct boost::CopyConstructible<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:125:16: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: [ skipping 4 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'typename boost::range_difference::type boost::range::count(const SinglePassRange&, const Value&) [with SinglePassRange = std::__cxx11::basic_string; Value = char; typename boost::range_difference::type = long int]' src/mongo/client/mongo_uri.cpp:543:29: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::CopyConstructible::~CopyConstructible() [with TT = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 167 | BOOST_CONCEPT_USAGE(CopyConstructible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 8 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'typename boost::range_difference::type boost::range::count(const SinglePassRange&, const Value&) [with SinglePassRange = std::__cxx11::basic_string; Value = char; typename boost::range_difference::type = long int]' src/mongo/client/mongo_uri.cpp:543:29: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::incrementable_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/range/concepts.hpp:136:13: required from 'struct boost::range_detail::IncrementableIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: [ skipping 3 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'typename boost::range_difference::type boost::range::count(const SinglePassRange&, const Value&) [with SinglePassRange = std::__cxx11::basic_string; Value = char; typename boost::range_difference::type = long int]' src/mongo/client/mongo_uri.cpp:543:29: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::range_detail::IncrementableIteratorConcept::~IncrementableIteratorConcept() [with Iterator = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:136:13: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 136 | BOOST_CONCEPT_USAGE(IncrementableIteratorConcept) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::EqualityComparable<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: required from 'struct boost::EqualityComparable<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: [ skipping 3 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'typename boost::range_difference::type boost::range::count(const SinglePassRange&, const Value&) [with SinglePassRange = std::__cxx11::basic_string; Value = char; typename boost::range_difference::type = long int]' src/mongo/client/mongo_uri.cpp:543:29: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::EqualityComparable::~EqualityComparable() [with TT = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 233 | BOOST_CONCEPT_USAGE(EqualityComparable) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 7 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'typename boost::range_difference::type boost::range::count(const SinglePassRange&, const Value&) [with SinglePassRange = std::__cxx11::basic_string; Value = char; typename boost::range_difference::type = long int]' src/mongo/client/mongo_uri.cpp:543:29: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::single_pass_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > >]' src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: required from 'struct boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'typename boost::range_difference::type boost::range::count(const SinglePassRange&, const Value&) [with SinglePassRange = std::__cxx11::basic_string; Value = char; typename boost::range_difference::type = long int]' src/mongo/client/mongo_uri.cpp:543:29: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::range_detail::SinglePassIteratorConcept::~SinglePassIteratorConcept() [with Iterator = __gnu_cxx::__normal_iterator >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 158 | BOOST_CONCEPT_USAGE(SinglePassIteratorConcept) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::SinglePassRangeConcept >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > >]' src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: required from 'struct boost::SinglePassRangeConcept >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'typename boost::range_difference::type boost::range::count(const SinglePassRange&, const Value&) [with SinglePassRange = std::__cxx11::basic_string; Value = char; typename boost::range_difference::type = long int]' src/mongo/client/mongo_uri.cpp:543:29: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::SinglePassRangeConcept::~SinglePassRangeConcept() [with T = const std::__cxx11::basic_string]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 284 | BOOST_CONCEPT_USAGE(SinglePassRangeConcept) | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::constraint::failed() [with Model = boost::algorithm::FinderConcept >, __gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:77:13: required from 'SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&, FinderT) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; FinderT = boost::algorithm::detail::token_finderF >]' src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:146:50: required from 'SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector >; RangeT = const std::__cxx11::basic_string; PredicateT = boost::algorithm::detail::is_any_ofF]' src/mongo/client/mongo_uri.cpp:587:28: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:47:52: warning: 'this' pointer is null [-Wnonnull] 47 | static void failed() { ((Model*)0)->constraints(); } | ~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/algorithm/string/iter_find.hpp:26, from src/third_party/boost-1.70.0/boost/algorithm/string/split.hpp:16, from src/mongo/client/mongo_uri.cpp:40: src/third_party/boost-1.70.0/boost/algorithm/string/concept.hpp:40:18: note: in a call to non-static member function 'void boost::algorithm::FinderConcept::constraints() [with FinderT = boost::algorithm::detail::token_finderF >; IteratorT = __gnu_cxx::__normal_iterator >]' 40 | void constraints() | ^~~~~~~~~~~ g++ -o build/opt/mongo/db/ops/update.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ops/update.cpp In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: required from 'struct boost::SinglePassRangeConcept > > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept > > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > > > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ > > >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range<__gnu_cxx::__normal_iterator > >; SinglePassRange2 = boost::iterator_range<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = __gnu_cxx::__normal_iterator >; Iterator2T = __gnu_cxx::__normal_iterator >]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = __gnu_cxx::__normal_iterator >]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; Facade2 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; V1 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; V2 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/mongo/client/mongo_uri.cpp:167:58: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::SinglePassRangeConcept > > >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::SinglePassRangeConcept > > >]': src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range<__gnu_cxx::__normal_iterator > >; SinglePassRange2 = boost::iterator_range<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = __gnu_cxx::__normal_iterator >; Iterator2T = __gnu_cxx::__normal_iterator >]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = __gnu_cxx::__normal_iterator >]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; Facade2 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; V1 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; V2 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/mongo/client/mongo_uri.cpp:167:58: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/range/iterator_range.hpp:13, from src/third_party/boost-1.70.0/boost/range/as_literal.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/case_conv.hpp:19, from src/mongo/client/mongo_uri.cpp:36: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::SinglePassRangeConcept::~SinglePassRangeConcept() [with T = const boost::iterator_range<__gnu_cxx::__normal_iterator > >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 284 | BOOST_CONCEPT_USAGE(SinglePassRangeConcept) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::SinglePassRangeConcept > > >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > > > >]' src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: required from 'struct boost::SinglePassRangeConcept > > >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept > > >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > > > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range<__gnu_cxx::__normal_iterator > >; SinglePassRange2 = boost::iterator_range<__gnu_cxx::__normal_iterator > >]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = __gnu_cxx::__normal_iterator >; Iterator2T = __gnu_cxx::__normal_iterator >]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = __gnu_cxx::__normal_iterator >]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; Facade2 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; V1 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >; V2 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range<__gnu_cxx::__normal_iterator > >&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/mongo/client/mongo_uri.cpp:167:58: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::SinglePassRangeConcept::~SinglePassRangeConcept() [with T = const boost::iterator_range<__gnu_cxx::__normal_iterator > >]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 284 | BOOST_CONCEPT_USAGE(SinglePassRangeConcept) | ^~~~~~~~~~~~~~~~~~~ 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 g++ -o build/opt/mongo/db/repl/replication_consistency_markers_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/replication_consistency_markers_impl.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/chariter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/chariter.cpp 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 build/opt/mongo/db/auth/user_name.o build/opt/mongo/db/auth/role_name.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauth.a g++ -o build/opt/mongo/db/pipeline/document_source_bucket_auto.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_bucket_auto.cpp gcc -o build/opt/third_party/wiredtiger/src/cursor/cur_bulk.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/cursor/cur_bulk.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/ops/update.h:32, from src/mongo/db/ops/update.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/index/wildcard_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index/wildcard_access_method.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:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/ops/update.h:32, from src/mongo/db/ops/update.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/ops/update.h:32, from src/mongo/db/ops/update.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/ops/update.h:32, from src/mongo/db/ops/update.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/repl/replication_consistency_markers_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/repl/replication_consistency_markers_impl.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/expression.h:47, from src/mongo/db/pipeline/accumulator.h:43, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:32, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/repl/replication_consistency_markers_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/repl/replication_consistency_markers_impl.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/projection_executor.h:38, from src/mongo/db/exec/wildcard_projection.h:30, from src/mongo/db/index/wildcard_key_generator.h:32, from src/mongo/db/index/wildcard_access_method.h:33, from src/mongo/db/index/wildcard_access_method.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_bucket_auto.h:34, from src/mongo/db/pipeline/document_source_bucket_auto.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_bucket_auto.h:34, from src/mongo/db/pipeline/document_source_bucket_auto.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_bucket_auto.h:34, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/wildcard_projection.h:30, from src/mongo/db/index/wildcard_key_generator.h:32, from src/mongo/db/index/wildcard_access_method.h:33, from src/mongo/db/index/wildcard_access_method.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/wildcard_projection.h:30, from src/mongo/db/index/wildcard_key_generator.h:32, from src/mongo/db/index/wildcard_access_method.h:33, from src/mongo/db/index/wildcard_access_method.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/wildcard_projection.h:30, from src/mongo/db/index/wildcard_key_generator.h:32, from src/mongo/db/index/wildcard_access_method.h:33, from src/mongo/db/index/wildcard_access_method.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/background.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/background.cpp g++ -o build/opt/mongo/scripting/mozjs/minkey.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/minkey.cpp g++ -o build/opt/mongo/db/pipeline/expression.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/expression.cpp g++ -o build/opt/mongo/db/pipeline/expression_trigonometric.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/expression_trigonometric.cpp g++ -o build/opt/mongo/db/storage/biggie/biggie_record_store.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/biggie/biggie_record_store.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/expression.h:47, from src/mongo/db/pipeline/expression.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/expression.h:47, from src/mongo/db/pipeline/expression_trigonometric.h:32, from src/mongo/db/pipeline/expression_trigonometric.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/scripting/mozjs/jsstringwrapper.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/jsstringwrapper.cpp In file included from src/mongo/db/pipeline/expression_trigonometric.h:32, from src/mongo/db/pipeline/expression_trigonometric.cpp:32: src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionArcCosine]': src/mongo/db/pipeline/expression_trigonometric.cpp:74:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(expr); | ^ src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionArcSine]': src/mongo/db/pipeline/expression_trigonometric.cpp:76:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionHyperbolicArcTangent]': src/mongo/db/pipeline/expression_trigonometric.cpp:78:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionHyperbolicArcCosine]': src/mongo/db/pipeline/expression_trigonometric.cpp:80:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionCosine]': src/mongo/db/pipeline/expression_trigonometric.cpp:86:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSine]': src/mongo/db/pipeline/expression_trigonometric.cpp:92:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionTangent]': src/mongo/db/pipeline/expression_trigonometric.cpp:98:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionArcTangent]': src/mongo/db/pipeline/expression_trigonometric.cpp:134:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionHyperbolicArcSine]': src/mongo/db/pipeline/expression_trigonometric.cpp:135:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionHyperbolicCosine]': src/mongo/db/pipeline/expression_trigonometric.cpp:136:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionHyperbolicSine]': src/mongo/db/pipeline/expression_trigonometric.cpp:137:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionHyperbolicTangent]': src/mongo/db/pipeline/expression_trigonometric.cpp:138:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionArcTangent2]': src/mongo/db/pipeline/expression_trigonometric.cpp:179:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionDegreesToRadians]': src/mongo/db/pipeline/expression_trigonometric.cpp:218:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionRadiansToDegrees]': src/mongo/db/pipeline/expression_trigonometric.cpp:239:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/index/expression_keys_private.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index/expression_keys_private.cpp In file included from src/mongo/db/pipeline/expression.cpp:33: src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionArray]': src/mongo/db/pipeline/expression.cpp:189:33: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(expr); | ^ src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionAbs]': src/mongo/db/pipeline/expression.cpp:263:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionAdd]': src/mongo/db/pipeline/expression.cpp:345:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionAllElementsTrue]': src/mongo/db/pipeline/expression.cpp:367:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionAnd]': src/mongo/db/pipeline/expression.cpp:441:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionAnyElementTrue]': src/mongo/db/pipeline/expression.cpp:463:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionArrayElemAt]': src/mongo/db/pipeline/expression.cpp:554:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionFirst]': src/mongo/db/pipeline/expression.cpp:566:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionLast]': src/mongo/db/pipeline/expression.cpp:581:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionObjectToArray]': src/mongo/db/pipeline/expression.cpp:617:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionArrayToObject]': src/mongo/db/pipeline/expression.cpp:728:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionBsonSize]': src/mongo/db/pipeline/expression.cpp:735:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionCeil]': src/mongo/db/pipeline/expression.cpp:769:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionConcat]': src/mongo/db/pipeline/expression.cpp:930:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionConcatArrays]': src/mongo/db/pipeline/expression.cpp:958:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionCond]': src/mongo/db/pipeline/expression.cpp:976:22: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionDivide]': src/mongo/db/pipeline/expression.cpp:1934:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionExp]': src/mongo/db/pipeline/expression.cpp:1949:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionFloor]': src/mongo/db/pipeline/expression.cpp:2372:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionMod]': src/mongo/db/pipeline/expression.cpp:2825:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionMultiply]': src/mongo/db/pipeline/expression.cpp:2891:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIfNull]': src/mongo/db/pipeline/expression.cpp:2907:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIn]': src/mongo/db/pipeline/expression.cpp:2930:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIndexOfArray]': src/mongo/db/pipeline/expression.cpp:3079:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIndexOfBytes]': src/mongo/db/pipeline/expression.cpp:3144:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIndexOfCP]': src/mongo/db/pipeline/expression.cpp:3231:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionLn]': src/mongo/db/pipeline/expression.cpp:3252:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionLog]': src/mongo/db/pipeline/expression.cpp:3296:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionLog10]': src/mongo/db/pipeline/expression.cpp:3318:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionNot]': src/mongo/db/pipeline/expression.cpp:3455:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionOr]': src/mongo/db/pipeline/expression.cpp:3525:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionPow]': src/mongo/db/pipeline/expression.cpp:3746:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionRange]': src/mongo/db/pipeline/expression.cpp:3809:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionReverseArray]': src/mongo/db/pipeline/expression.cpp:4096:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSetDifference]': src/mongo/db/pipeline/expression.cpp:4150:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSetEquals]': src/mongo/db/pipeline/expression.cpp:4192:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSetIntersection]': src/mongo/db/pipeline/expression.cpp:4236:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSetIsSubset]': src/mongo/db/pipeline/expression.cpp:4328:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSetUnion]': src/mongo/db/pipeline/expression.cpp:4353:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIsArray]': src/mongo/db/pipeline/expression.cpp:4365:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSlice]': src/mongo/db/pipeline/expression.cpp:4451:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSize]': src/mongo/db/pipeline/expression.cpp:4468:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSplit]': src/mongo/db/pipeline/expression.cpp:4518:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSqrt]': src/mongo/db/pipeline/expression.cpp:4540:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionStrcasecmp]': src/mongo/db/pipeline/expression.cpp:4564:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSubstrBytes]': src/mongo/db/pipeline/expression.cpp:4625:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSubstrCP]': src/mongo/db/pipeline/expression.cpp:4699:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionStrLenBytes]': src/mongo/db/pipeline/expression.cpp:4728:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionBinarySize]': src/mongo/db/pipeline/expression.cpp:4754:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionStrLenCP]': src/mongo/db/pipeline/expression.cpp:4782:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSubtract]': src/mongo/db/pipeline/expression.cpp:4834:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionToLower]': src/mongo/db/pipeline/expression.cpp:4986:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionToUpper]': src/mongo/db/pipeline/expression.cpp:5000:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionRound]': src/mongo/db/pipeline/expression.cpp:5320:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionTrunc]': src/mongo/db/pipeline/expression.cpp:5333:58: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionType]': src/mongo/db/pipeline/expression.cpp:5348:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIsNumber]': src/mongo/db/pipeline/expression.cpp:5360:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call g++ -o build/opt/mongo/client/authenticate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/authenticate.cpp g++ -o build/opt/mongo/db/catalog/index_build_oplog_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/index_build_oplog_entry.cpp src/mongo/client/authenticate.cpp: In function 'mongo::StatusWith > mongo::auth::{anonymous}::extractDBField(const mongo::BSONObj&)': src/mongo/client/authenticate.cpp:78:21: warning: redundant move in return statement [-Wredundant-move] 78 | return std::move(db); | ~~~~~~~~~^~~~ src/mongo/client/authenticate.cpp:78:21: note: remove 'std::move' call g++ -o build/opt/mongo/util/boost_assert_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/boost_assert_impl.cpp gcc -o build/opt/third_party/wiredtiger/src/support/pow.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/pow.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/mozjs-60/extract/mozglue/misc/Mutex_posix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/mozglue/misc/Mutex_posix.cpp g++ -o build/opt/mongo/client/remote_command_targeter_standalone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/remote_command_targeter_standalone.cpp g++ -o build/opt/mongo/db/geo/geometry_container.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/geo/geometry_container.cpp g++ -o build/opt/mongo/util/concurrency/thread_pool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/concurrency/thread_pool.cpp g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp gcc -o build/opt/third_party/icu4c-57.1/source/common/ubidi_props.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ubidi_props.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/pipeline/document_source_geo_near.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_geo_near.cpp ar rcsTD build/opt/mongo/db/pipeline/libexpression.a build/opt/mongo/db/pipeline/expression.o build/opt/mongo/db/pipeline/expression_trigonometric.o build/opt/mongo/db/pipeline/make_js_function.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libexpression.a g++ -o build/opt/mongo/db/repl/oplog_buffer_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/oplog_buffer_collection.cpp g++ -o build/opt/mongo/util/regex_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/regex_util.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_geo_near.h:32, from src/mongo/db/pipeline/document_source_geo_near.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_buffer_collection.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_buffer_collection.cpp:43: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_geo_near.h:32, from src/mongo/db/pipeline/document_source_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/exec/sort.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/sort.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:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:23, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/Class.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/Class.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/Class.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/Class.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/Class.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/Class.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jsexn.h:17, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:18, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_geo_near.h:32, from src/mongo/db/pipeline/document_source_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/Class.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jsexn.h:17, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:18, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/Class.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jsexn.h:17, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:18, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/Class.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/Class.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/Class.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:22, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_geo_near.h:32, from src/mongo/db/pipeline/document_source_geo_near.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/Class.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = mozilla::Array]': src/third_party/mozjs-60/extract/js/src/ds/Bitmap.cpp:36:12: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class mozilla::Array'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/mozilla/EnumeratedArray.h:12, from src/third_party/mozjs-60/extract/js/src/jspubtd.h:15, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/Class.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/include/mozilla/Array.h:22:7: note: 'class mozilla::Array' declared here 22 | class Array | ^~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/Class.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_buffer_collection.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_buffer_collection.cpp:43: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/Class.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/Class.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/Class.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/Class.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/Class.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/Class.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/intl/PluralRules.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ ar rcsTD build/opt/mongo/db/libaudit.a build/opt/mongo/db/audit.o Skipping ranlib for thin archive build/opt/mongo/db/libaudit.a g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/text_multifile_backend.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/text_multifile_backend.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/exec/sort.h:35, from src/mongo/db/exec/sort.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/util/options_parser/constraints.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/options_parser/constraints.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/query/router_stage_limit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/query/router_stage_limit.cpp gcc -o build/opt/third_party/wiredtiger/src/os_common/os_alloc.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_common/os_alloc.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/icu4c-57.1/source/common/ustring.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustring.cpp g++ -o build/opt/mongo/logv2/console.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logv2/console.cpp g++ -o build/opt/mongo/db/geo/r2_region_coverer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/geo/r2_region_coverer.cpp g++ -o build/opt/mongo/s/request_types/set_shard_version_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/request_types/set_shard_version_request.cpp Generating build/opt/mongo/db/mongod_options_replication_gen.cpp g++ -o build/opt/mongo/db/mongod_options_replication_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/mongod_options_replication_gen.cpp gcc -o build/opt/third_party/wiredtiger/src/btree/bt_delete.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_delete.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/s/query/async_results_merger_params_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/query/async_results_merger_params_gen.cpp g++ -o build/opt/mongo/db/bson/dotted_path_support.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/bson/dotted_path_support.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mongod_options_replication_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/catalog/collection_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/collection_options.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mongod_options_replication_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from build/opt/mongo/s/query/async_results_merger_params_gen.h:24, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mongod_options_replication_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from build/opt/mongo/s/query/async_results_merger_params_gen.h:24, from build/opt/mongo/s/query/async_results_merger_params_gen.cpp:9: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mongod_options_replication_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/db/storage/duplicate_key_error_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/duplicate_key_error_info.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from build/opt/mongo/s/query/async_results_merger_params_gen.h:24, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from build/opt/mongo/s/query/async_results_merger_params_gen.h:24, from build/opt/mongo/s/query/async_results_merger_params_gen.cpp:9: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/catalog/collection_options.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/scripting/mozjs/oid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/oid.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/catalog/collection_options.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/catalog/collection_options.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/catalog/collection_options.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/s/catalog/libdist_lock_catalog_impl.a build/opt/mongo/s/catalog/dist_lock_catalog_impl.o Skipping ranlib for thin archive build/opt/mongo/s/catalog/libdist_lock_catalog_impl.a g++ -o build/opt/mongo/s/mongos_server_parameters_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/mongos_server_parameters_gen.cpp g++ -o build/opt/mongo/s/mongos_server_parameters.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/mongos_server_parameters.cpp g++ -o build/opt/mongo/db/pipeline/document_source_single_document_transformation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_single_document_transformation.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 g++ -o build/opt/mongo/db/geo/shapes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/geo/shapes.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/mongos_server_parameters_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/ftdc/controller.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ftdc/controller.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/mongos_server_parameters_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_single_document_transformation.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/mongos_server_parameters_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/mongos_server_parameters_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_single_document_transformation.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_single_document_transformation.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/index/index_descriptor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index/index_descriptor.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:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_single_document_transformation.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/index/index_descriptor.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call ar rcsTD build/opt/third_party/murmurhash3/libmurmurhash3.a build/opt/third_party/murmurhash3/MurmurHash3.o src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/third_party/murmurhash3/libmurmurhash3.a src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/database_version_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/database_version_helpers.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/index/index_descriptor.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/index/index_descriptor.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/index/index_descriptor.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call Generating build/opt/mongo/util/net/ssl_parameters_auth_gen.cpp g++ -o build/opt/mongo/util/net/ssl_parameters_auth_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/util/net/ssl_parameters_auth_gen.cpp ar rcsTD build/opt/mongo/s/libmongos_server_parameters.a build/opt/mongo/s/mongos_server_parameters.o build/opt/mongo/s/mongos_server_parameters_gen.o Skipping ranlib for thin archive build/opt/mongo/s/libmongos_server_parameters.a g++ -o build/opt/mongo/util/net/ssl_parameters_auth.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/ssl_parameters_auth.cpp g++ -o build/opt/mongo/db/cursor_server_params_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/cursor_server_params_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/ssl_parameters_auth_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/ssl_parameters_auth_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/cursor_server_params_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/ssl_parameters_auth_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/fts/fts_query_noop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/fts/fts_query_noop.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/ssl_parameters_auth_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/cursor_server_params_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/scripting/mozjs/dbquery.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/dbquery.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/cursor_server_params_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/cursor_server_params_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 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 g++ -o build/opt/mongo/db/update/object_replace_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/object_replace_executor.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/third_party/mozjs-60/include/jspubtd.h:17, from src/third_party/mozjs-60/include/jsapi.h:26, from src/mongo/scripting/mozjs/wraptype.h:33, from src/mongo/scripting/mozjs/dbquery.h:32, from src/mongo/scripting/mozjs/dbquery.cpp:32: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 1]': src/third_party/mozjs-60/include/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 1]' src/mongo/scripting/mozjs/dbquery.cpp:129:38: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/jsapi.h:29, from src/mongo/scripting/mozjs/wraptype.h:33, from src/mongo/scripting/mozjs/dbquery.h:32, from src/mongo/scripting/mozjs/dbquery.cpp:32: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ g++ -o build/opt/mongo/db/auth/authz_manager_external_state_local.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/authz_manager_external_state_local.cpp gcc -o build/opt/third_party/wiredtiger/src/schema/schema_project.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/schema/schema_project.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/opt/mongo/util/net/libssl_parameters_auth.a build/opt/mongo/util/net/ssl_parameters_auth.o build/opt/mongo/util/net/ssl_parameters_auth_gen.o Skipping ranlib for thin archive build/opt/mongo/util/net/libssl_parameters_auth.a g++ -o build/opt/mongo/db/query/hint_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/hint_parser.cpp g++ -o build/opt/mongo/db/geo/big_polygon.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/geo/big_polygon.cpp g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_truncf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/s_truncf.cpp gcc -o build/opt/third_party/wiredtiger/ext/compressors/zstd/zstd_compress.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/ext/compressors/zstd/zstd_compress.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/client/sdam/sdam_configuration.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/sdam/sdam_configuration.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/timer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/timer.cpp g++ -o build/opt/mongo/db/snapshot_window_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/snapshot_window_util.cpp g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_cbrt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/s_cbrt.cpp g++ -o build/opt/mongo/db/mongod_options_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/mongod_options_init.cpp 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 g++ -o build/opt/mongo/db/pipeline/document_source_coll_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_coll_stats.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 g++ -o build/opt/mongo/base/init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/init.cpp g++ -o build/opt/mongo/util/net/sock.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/sock.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 Generating build/opt/mongo/db/repl/rollback_impl_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_coll_stats.h:32, from src/mongo/db/pipeline/document_source_coll_stats.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/rollback_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/rollback_impl.cpp g++ -o build/opt/mongo/util/itoa.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/itoa.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_coll_stats.h:32, from src/mongo/db/pipeline/document_source_coll_stats.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_coll_stats.h:32, from src/mongo/db/pipeline/document_source_coll_stats.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_coll_stats.h:32, from src/mongo/db/pipeline/document_source_coll_stats.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/catalog/dist_lock_ping_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/catalog/dist_lock_ping_info.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/repl/rollback_impl.h:35, from src/mongo/db/repl/rollback_impl.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/repl/rollback_impl.h:35, from src/mongo/db/repl/rollback_impl.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/db/storage/kv/kv_prefix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/kv/kv_prefix.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/repl/rollback_impl.h:35, from src/mongo/db/repl/rollback_impl.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/repl/rollback_impl.h:35, from src/mongo/db/repl/rollback_impl.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/lsm/lsm_worker.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/lsm/lsm_worker.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/severity_level.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/severity_level.cpp g++ -o build/opt/mongo/s/catalog/type_locks.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/catalog/type_locks.cpp ar rcsTD build/opt/mongo/util/libtesting_options.a build/opt/mongo/util/testing_options.o build/opt/mongo/util/testing_options_gen.o Skipping ranlib for thin archive build/opt/mongo/util/libtesting_options.a g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_trunc.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/s_trunc.cpp g++ -o build/opt/mongo/db/repl/replication_process.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/replication_process.cpp g++ -o build/opt/mongo/db/query/explain_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/explain_common.cpp g++ -o build/opt/mongo/db/storage/control/storage_control.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/control/storage_control.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/replication_process.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/replication_process.cpp:42: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/query/libquery_common.a build/opt/mongo/db/query/explain_common.o build/opt/mongo/db/query/find_common.o build/opt/mongo/db/query/parsed_distinct.o Skipping ranlib for thin archive build/opt/mongo/db/query/libquery_common.a gcc -o build/opt/third_party/wiredtiger/src/btree/bt_io.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_io.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/replication_process.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/replication_process.cpp:42: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/shim_wiredtiger.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger src/third_party/shim_wiredtiger.cpp ar rcsTD build/opt/third_party/libshim_wiredtiger.a build/opt/third_party/shim_wiredtiger.o Skipping ranlib for thin archive build/opt/third_party/libshim_wiredtiger.a g++ -o build/opt/mongo/db/commands/find_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/find_cmd.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/libstorage_control.a build/opt/mongo/db/storage/control/storage_control.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libstorage_control.a 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 g++ -o build/opt/mongo/db/exec/document_value/document_metadata_fields.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/document_value/document_metadata_fields.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/find_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call gcc -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 -c -o build/opt/third_party/unwind/dist/src/x86_64/setcontext.o src/third_party/unwind/dist/src/x86_64/setcontext.S src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/async_requests_sender.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/async_requests_sender.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:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/find_cmd.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/find_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/find_cmd.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/test_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/test_commands.cpp Generating build/opt/mongo/db/free_mon/free_mon_commands_gen.cpp g++ -o build/opt/mongo/db/free_mon/free_mon_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_commands.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/test_commands.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/test_commands.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/free_mon/free_mon_commands.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/test_commands.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/test_commands.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/free_mon/free_mon_commands.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/free_mon/free_mon_commands.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/free_mon/free_mon_commands.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/util/options_parser/options_parser_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/options_parser/options_parser_init.cpp g++ -o build/opt/mongo/db/index_builds_coordinator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index_builds_coordinator.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/unwind/dist/src/x86_64/Ltrace.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/x86_64/Ltrace.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/code_conversion.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/code_conversion.cpp g++ -o build/opt/mongo/s/client/sharding_connection_hook.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/client/sharding_connection_hook.cpp g++ -o build/opt/mongo/s/sharding_task_executor_pool_controller.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/sharding_task_executor_pool_controller.cpp g++ -o build/opt/mongo/s/sharding_task_executor_pool_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/sharding_task_executor_pool_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/index_builds_coordinator.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/index_builds_coordinator.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/index_builds_coordinator.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/index_builds_coordinator.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/sharding_task_executor_pool_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/sharding_task_executor_pool_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/prepare_conflict_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/prepare_conflict_tracker.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:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/sharding_task_executor_pool_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/sharding_task_executor_pool_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/update/push_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/push_node.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/update/update_leaf_node.h:32, from src/mongo/db/update/modifier_node.h:39, from src/mongo/db/update/push_node.h:38, from src/mongo/db/update/push_node.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/unwind/dist/src/mi/Lget_fpreg.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/mi/Lget_fpreg.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/views/view_graph.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/views/view_graph.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call 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_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/speculative_auth.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/speculative_auth.cpp ar rcsTD build/opt/mongo/s/libsharding_initialization.a build/opt/mongo/s/sharding_initialization.o build/opt/mongo/s/sharding_task_executor_pool_controller.o build/opt/mongo/s/sharding_task_executor_pool_gen.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 g++ -o build/opt/mongo/db/mirroring_sampler.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/mirroring_sampler.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/rpc/legacy_request_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/legacy_request_builder.cpp g++ -o build/opt/mongo/logv2/log_component_settings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logv2/log_component_settings.cpp g++ -o build/opt/mongo/db/transaction_participant_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/transaction_participant_gen.cpp ar rcsTD build/opt/mongo/db/repl/libspeculative_authenticate.a build/opt/mongo/db/repl/speculative_auth.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libspeculative_authenticate.a g++ -o build/opt/mongo/db/query/collation/collator_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/collation/collator_interface.cpp ar rcsTD build/opt/mongo/db/libindex_builds_coordinator_interface.a build/opt/mongo/db/index_builds_coordinator.o Skipping ranlib for thin archive build/opt/mongo/db/libindex_builds_coordinator_interface.a gcc -o build/opt/third_party/wiredtiger/src/reconcile/rec_child.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/reconcile/rec_child.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/pipeline/document_source_sort_by_count.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_sort_by_count.cpp gcc -o build/opt/third_party/icu4c-57.1/source/common/udataswp.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/udataswp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/read_write_concern_defaults.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/read_write_concern_defaults.cpp g++ -o build/opt/mongo/db/read_write_concern_defaults_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/read_write_concern_defaults_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from build/opt/mongo/db/transaction_participant_gen.h:21, from build/opt/mongo/db/transaction_participant_gen.cpp:9: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from build/opt/mongo/db/transaction_participant_gen.h:21, from build/opt/mongo/db/transaction_participant_gen.cpp:9: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_sort_by_count.h:32, from src/mongo/db/pipeline/document_source_sort_by_count.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from build/opt/mongo/db/transaction_participant_gen.h:21, from build/opt/mongo/db/transaction_participant_gen.cpp:9: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from build/opt/mongo/db/transaction_participant_gen.h:21, from build/opt/mongo/db/transaction_participant_gen.cpp:9: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_sort_by_count.h:32, from src/mongo/db/pipeline/document_source_sort_by_count.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/read_write_concern_defaults_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call In file included from src/mongo/util/invalidating_lru_cache.h:38, from src/mongo/util/read_through_cache.h:40, from src/mongo/db/read_write_concern_defaults.h:42, from src/mongo/db/read_write_concern_defaults.cpp:34: src/mongo/util/lru_cache.h: In instantiation of 'boost::optional > mongo::LRUCache::add(const K&, V) [with K = mongo::ReadWriteConcernDefaults::Type; V = std::shared_ptr::StoredValue>::StoredValue>; Hash = absl::hash_internal::Hash; KeyEqual = std::equal_to]': src/mongo/util/invalidating_lru_cache.h:232:38: required from 'mongo::InvalidatingLRUCache::ValueHandle mongo::InvalidatingLRUCache::insertOrAssignAndGet(const Key&, Value&&) [with Key = mongo::ReadWriteConcernDefaults::Type; Value = mongo::ReadThroughCache::StoredValue]' src/mongo/util/read_through_cache.h:283:43: required from 'mongo::ReadThroughCache::ValueHandle mongo::ReadThroughCache::insertOrAssignAndGet(const Key&, Value&&, mongo::Date_t) [with Key = mongo::ReadWriteConcernDefaults::Type; Value = mongo::RWConcernDefault]' src/mongo/db/read_write_concern_defaults.cpp:163:35: required from here src/mongo/util/lru_cache.h:108:34: warning: redundant move in return statement [-Wredundant-move] 108 | return std::move(pair); | ^ src/mongo/util/lru_cache.h:108:34: note: remove 'std::move' call In file included from src/mongo/db/read_write_concern_defaults.h:42, from src/mongo/db/read_write_concern_defaults.cpp:34: src/mongo/util/read_through_cache.h: In instantiation of 'mongo::Future mongo::ReadThroughCache::_asyncLookupWhileInvalidated(std::unique_lock, mongo::ReadThroughCache::InProgressLookup&) [with Key = mongo::ReadWriteConcernDefaults::Type; Value = mongo::RWConcernDefault]': src/mongo/util/read_through_cache.h:234:24: required from 'mongo::SharedSemiFuture::ValueHandle> mongo::ReadThroughCache::acquireAsync(const Key&) [with Key = mongo::ReadWriteConcernDefaults::Type; Value = mongo::RWConcernDefault]' src/mongo/util/read_through_cache.h:273:16: required from 'mongo::ReadThroughCache::ValueHandle mongo::ReadThroughCache::acquire(mongo::OperationContext*, const Key&) [with Key = mongo::ReadWriteConcernDefaults::Type; Value = mongo::RWConcernDefault]' src/mongo/db/read_write_concern_defaults.cpp:174:51: required from here src/mongo/util/read_through_cache.h:435:32: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] 435 | return std::move(future); | ^ src/mongo/util/read_through_cache.h:435:32: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_sort_by_count.h:32, from src/mongo/db/pipeline/document_source_sort_by_count.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_sort_by_count.h:32, from src/mongo/db/pipeline/document_source_sort_by_count.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/read_write_concern_defaults_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/read_write_concern_defaults_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/read_write_concern_defaults_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/cursor/cur_log.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/cursor/cur_log.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/kms-message/src/kms_gcp_request.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DKMS_MSG_STATIC -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO -Isrc/third_party/kms-message/src src/third_party/kms-message/src/kms_gcp_request.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/s/query/cluster_query_knobs_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/query/cluster_query_knobs_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/query/cluster_query_knobs_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libread_write_concern_defaults.a build/opt/mongo/db/read_write_concern_defaults.o build/opt/mongo/db/read_write_concern_defaults_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libread_write_concern_defaults.a g++ -o build/opt/mongo/util/system_clock_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/system_clock_source.cpp gcc -o build/opt/third_party/wiredtiger/src/btree/bt_vrfy_dsk.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_vrfy_dsk.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/query/cluster_query_knobs_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/base/parse_number.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/parse_number.cpp g++ -o build/opt/mongo/db/repair_database.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repair_database.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/query/cluster_query_knobs_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/query/cluster_query_knobs_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/stats/server_read_concern_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/stats/server_read_concern_metrics.cpp g++ -o build/opt/mongo/s/request_types/wait_for_fail_point_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/request_types/wait_for_fail_point_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/stats/server_read_concern_metrics.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/wait_for_fail_point_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repair_database.cpp:44: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/stats/server_read_concern_metrics.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/wait_for_fail_point_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repair_database.cpp:44: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/wait_for_fail_point_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/wait_for_fail_point_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/client/remote_command_retry_scheduler.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/remote_command_retry_scheduler.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/kms-message/src/sort.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DKMS_MSG_STATIC -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO -Isrc/third_party/kms-message/src src/third_party/kms-message/src/sort.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/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 Generating build/opt/mongo/db/pipeline/document_source_replace_root_gen.cpp ar rcsTD build/opt/mongo/db/repl/libelection_reason_counter.a build/opt/mongo/db/repl/election_reason_counter.o build/opt/mongo/db/repl/election_reason_counter_gen.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libelection_reason_counter.a g++ -o build/opt/mongo/db/pipeline/document_source_replace_root.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_replace_root.cpp g++ -o build/opt/mongo/base/secure_allocator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/secure_allocator.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_replace_root.h:33, from src/mongo/db/pipeline/document_source_replace_root.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/exec/projection_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/projection_node.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_replace_root.h:33, from src/mongo/db/pipeline/document_source_replace_root.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/servslkf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/servslkf.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:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_replace_root.h:33, from src/mongo/db/pipeline/document_source_replace_root.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_replace_root.h:33, from src/mongo/db/pipeline/document_source_replace_root.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/would_change_owning_shard_exception.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/would_change_owning_shard_exception.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/projection_executor.h:38, from src/mongo/db/exec/projection_node.h:32, from src/mongo/db/exec/projection_node.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_asin.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/e_asin.cpp gcc -o build/opt/third_party/wiredtiger/src/history/hs_cursor.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/history/hs_cursor.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/projection_node.h:32, from src/mongo/db/exec/projection_node.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:47: src/third_party/mozjs-60/extract/js/src/jit/BacktrackingAllocator.cpp: In member function 'bool js::jit::BacktrackingAllocator::init()': src/third_party/mozjs-60/extract/js/src/jit/BacktrackingAllocator.cpp:417:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::jit::VirtualRegister' with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] 417 | memset(&vregs[0], 0, sizeof(VirtualRegister) * numVregs); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:47: src/third_party/mozjs-60/extract/js/src/jit/BacktrackingAllocator.h:506:7: note: 'class js::jit::VirtualRegister' declared here 506 | class VirtualRegister | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Label.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:35, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Label.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:35, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Label.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:35, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Label.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:35, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Label.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:35, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Label.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:35, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ g++ -o build/opt/mongo/db/ftdc/util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ftdc/util.cpp In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Label.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:35, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Label.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:35, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineJIT.h:13, from src/third_party/mozjs-60/extract/js/src/jit/BaselineIC.h:15, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:22, from src/third_party/mozjs-60/extract/js/src/jit/AliasAnalysisShared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/AliasAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/AliasAnalysis.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:20: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/projection_node.h:32, from src/mongo/db/exec/projection_node.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/Value.h:24, from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/projection_node.h:32, from src/mongo/db/exec/projection_node.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineJIT.h:13, from src/third_party/mozjs-60/extract/js/src/jit/BaselineIC.h:15, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:22, from src/third_party/mozjs-60/extract/js/src/jit/AliasAnalysisShared.h:10, from src/third_party/mozjs-60/extract/js/src/jit/AliasAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/AliasAnalysis.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:20: src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h: In instantiation of 'T* js::jit::JitAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = JS::Value; Value = unsigned int; HashPolicy = js::jit::LIRGraph::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/jit/LIR.h:1893:37: required from here src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:101:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 101 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/Value.h:24, from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.h:38, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpParser.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/opt/mongo/db/index/2d_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index/2d_access_method.cpp g++ -o build/opt/mongo/db/index/fts_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index/fts_access_method.cpp gcc -o build/opt/third_party/unwind/dist/src/x86_64/Linit_local.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/x86_64/Linit_local.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/replication_consistency_markers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/replication_consistency_markers.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 g++ -o build/opt/third_party/abseil-cpp-master/abseil-cpp/absl/hash/internal/hash.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/abseil-cpp-master/abseil-cpp src/third_party/abseil-cpp-master/abseil-cpp/absl/hash/internal/hash.cc ar rcsTD build/opt/third_party/abseil-cpp-master/libabsl_hash.a build/opt/third_party/abseil-cpp-master/abseil-cpp/absl/hash/internal/city.o build/opt/third_party/abseil-cpp-master/abseil-cpp/absl/hash/internal/hash.o Skipping ranlib for thin archive build/opt/third_party/abseil-cpp-master/libabsl_hash.a g++ -o build/opt/third_party/icu4c-57.1/source/common/ucnv_ext.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_ext.cpp 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 g++ -o build/opt/third_party/icu4c-57.1/source/common/parsepos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/parsepos.cpp gcc -o build/opt/third_party/unwind/dist/src/mi/Ldestroy_addr_space.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/mi/Ldestroy_addr_space.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/repl/timestamp_block.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/timestamp_block.cpp g++ -o build/opt/third_party/mozjs-60/extract/mozglue/misc/Printf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/mozglue/misc/Printf.cpp gcc -o build/opt/third_party/icu4c-57.1/source/common/uloc_tag.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uloc_tag.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/pipeline/lite_parsed_pipeline.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/lite_parsed_pipeline.cpp 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/index_access_method_factory_impl.o build/opt/mongo/db/index/s2_access_method.o build/opt/mongo/db/index/wildcard_access_method.o Skipping ranlib for thin archive build/opt/mongo/db/index/libindex_access_methods.a g++ -o build/opt/mongo/db/storage/storage_engine_lock_file_posix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/storage_engine_lock_file_posix.cpp 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 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 g++ -o build/opt/mongo/db/repl/scatter_gather_runner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/scatter_gather_runner.cpp In file included from src/mongo/db/pipeline/lite_parsed_pipeline.h:38, from src/mongo/db/pipeline/lite_parsed_pipeline.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libtimestamp_block.a build/opt/mongo/db/repl/timestamp_block.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libtimestamp_block.a g++ -o build/opt/mongo/db/exec/text_or.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/text_or.cpp ar rcsTD build/opt/mongo/db/pipeline/liblite_parsed_document_source.a build/opt/mongo/db/pipeline/lite_parsed_document_source.o build/opt/mongo/db/pipeline/lite_parsed_pipeline.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/liblite_parsed_document_source.a g++ -o build/opt/mongo/db/repl/dbcheck_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/repl/dbcheck_gen.cpp g++ -o build/opt/third_party/shim_timelib.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/timelib-2021.06 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 g++ -o build/opt/mongo/db/query/stage_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/stage_builder.cpp Generating build/opt/mongo/db/storage/flow_control_parameters_gen.cpp g++ -o build/opt/mongo/db/storage/flow_control_parameters_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/storage/flow_control_parameters_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/text_or.h:34, from src/mongo/db/exec/text_or.cpp:30: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/text_or.h:34, from src/mongo/db/exec/text_or.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/dbcheck_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/text_or.h:34, from src/mongo/db/exec/text_or.cpp:30: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/text_or.h:34, from src/mongo/db/exec/text_or.cpp:30: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/stage_builder.h:32, from src/mongo/db/query/stage_builder.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/flow_control_parameters_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/flow_control_parameters_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/stage_builder.h:34, from src/mongo/db/query/stage_builder.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/stage_builder.h:34, from src/mongo/db/query/stage_builder.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/stage_builder.h:34, from src/mongo/db/query/stage_builder.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/flow_control_parameters_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/flow_control_parameters_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/uts46.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uts46.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/unwind/dist/src/x86_64/Linit.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/x86_64/Linit.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/client/async_client.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/async_client.cpp g++ -o build/opt/mongo/client/dbclient_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/dbclient_base.cpp ar rcsTD build/opt/mongo/db/storage/libflow_control_parameters.a build/opt/mongo/db/storage/flow_control_parameters_gen.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libflow_control_parameters.a gcc -o build/opt/third_party/wiredtiger/src/support/err.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/err.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/util/net/private/ssl_expiration.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/private/ssl_expiration.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient_base.cpp:51: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/os_posix/os_snprintf.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_snprintf.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient_base.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/concurrency/lock_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/concurrency/lock_manager.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:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient_base.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient_base.cpp:51: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/concurrency/replication_state_transition_lock_guard.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/concurrency/replication_state_transition_lock_guard.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/concurrency/lock_manager.cpp:44: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/concurrency/lock_manager.cpp:44: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/concurrency/lock_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/concurrency/lock_stats.cpp g++ -o build/opt/mongo/s/sharding_egress_metadata_hook.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/sharding_egress_metadata_hook.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/concurrency/lock_manager.cpp:44: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/concurrency/lock_manager.cpp:44: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/explain_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/explain_cmd.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:34, from src/mongo/db/commands/explain_cmd.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:34, from src/mongo/db/commands/explain_cmd.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/text_file_backend.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/text_file_backend.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:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:34, from src/mongo/db/commands/explain_cmd.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/os_posix/os_priv.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_priv.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:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:34, from src/mongo/db/commands/explain_cmd.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/document_source_current_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_current_op.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_current_op.h:32, from src/mongo/db/pipeline/document_source_current_op.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/concurrency/liblock_manager.a build/opt/mongo/db/concurrency/d_concurrency.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 build/opt/mongo/db/concurrency/replication_state_transition_lock_guard.o Skipping ranlib for thin archive build/opt/mongo/db/concurrency/liblock_manager.a g++ -o build/opt/mongo/s/request_types/flush_database_cache_updates_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/request_types/flush_database_cache_updates_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_current_op.h:32, from src/mongo/db/pipeline/document_source_current_op.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_current_op.h:32, from src/mongo/db/pipeline/document_source_current_op.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_current_op.h:32, from src/mongo/db/pipeline/document_source_current_op.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/third_party/boost-1.70.0/libs/log/src/text_file_backend.cpp:49: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::constraint::failed() [with Model = boost::algorithm::FinderConcept, __gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:99:13: required from 'void boost::algorithm::find_format_all(SequenceT&, FinderT, FormatterT) [with SequenceT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::first_finderF; FormatterT = boost::algorithm::detail::const_formatF >]' src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:652:48: required from 'void boost::algorithm::replace_all(SequenceT&, const Range1T&, const Range2T&) [with SequenceT = std::__cxx11::basic_string; Range1T = boost::iterator_range; Range2T = boost::iterator_range]' src/third_party/boost-1.70.0/boost/date_time/time_facet.hpp:293:36: required from 'OutItrT boost::date_time::time_facet::put(OutItrT, std::ios_base&, boost::date_time::time_facet::char_type, const time_type&) const [with time_type = boost::posix_time::ptime; CharT = char; OutItrT = std::ostreambuf_iterator >; boost::date_time::time_facet::char_type = char]' src/third_party/boost-1.70.0/libs/log/src/text_file_backend.cpp:242:24: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:47:52: warning: 'this' pointer is null [-Wnonnull] 47 | static void failed() { ((Model*)0)->constraints(); } | ~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:22, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/third_party/boost-1.70.0/libs/log/src/text_file_backend.cpp:49: src/third_party/boost-1.70.0/boost/algorithm/string/concept.hpp:40:18: note: in a call to non-static member function 'void boost::algorithm::FinderConcept::constraints() [with FinderT = boost::algorithm::detail::first_finderF; IteratorT = __gnu_cxx::__normal_iterator >]' 40 | void constraints() | ^~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/third_party/boost-1.70.0/libs/log/src/text_file_backend.cpp:49: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::constraint::failed() [with Model = boost::algorithm::FormatterConcept >, boost::algorithm::detail::first_finderF, __gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:104:13: required from 'void boost::algorithm::find_format_all(SequenceT&, FinderT, FormatterT) [with SequenceT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::first_finderF; FormatterT = boost::algorithm::detail::const_formatF >]' src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:652:48: required from 'void boost::algorithm::replace_all(SequenceT&, const Range1T&, const Range2T&) [with SequenceT = std::__cxx11::basic_string; Range1T = boost::iterator_range; Range2T = boost::iterator_range]' src/third_party/boost-1.70.0/boost/date_time/time_facet.hpp:293:36: required from 'OutItrT boost::date_time::time_facet::put(OutItrT, std::ios_base&, boost::date_time::time_facet::char_type, const time_type&) const [with time_type = boost::posix_time::ptime; CharT = char; OutItrT = std::ostreambuf_iterator >; boost::date_time::time_facet::char_type = char]' src/third_party/boost-1.70.0/libs/log/src/text_file_backend.cpp:242:24: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:47:52: warning: 'this' pointer is null [-Wnonnull] 47 | static void failed() { ((Model*)0)->constraints(); } | ~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:22, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/third_party/boost-1.70.0/libs/log/src/text_file_backend.cpp:49: src/third_party/boost-1.70.0/boost/algorithm/string/concept.hpp:65:18: note: in a call to non-static member function 'void boost::algorithm::FormatterConcept::constraints() [with FormatterT = boost::algorithm::detail::const_formatF >; FinderT = boost::algorithm::detail::first_finderF; IteratorT = __gnu_cxx::__normal_iterator >]' 65 | void constraints() | ^~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/third_party/boost-1.70.0/libs/log/src/text_file_backend.cpp:49: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::constraint::failed() [with Model = boost::algorithm::FormatterConcept > > >, boost::algorithm::detail::first_finderF, __gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:104:13: required from 'void boost::algorithm::find_format_all(SequenceT&, FinderT, FormatterT) [with SequenceT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::first_finderF; FormatterT = boost::algorithm::detail::const_formatF > > >]' src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:652:48: required from 'void boost::algorithm::replace_all(SequenceT&, const Range1T&, const Range2T&) [with SequenceT = std::__cxx11::basic_string; Range1T = const char*; Range2T = std::__cxx11::basic_string]' src/third_party/boost-1.70.0/boost/date_time/time_facet.hpp:310:38: required from 'OutItrT boost::date_time::time_facet::put(OutItrT, std::ios_base&, boost::date_time::time_facet::char_type, const time_type&) const [with time_type = boost::posix_time::ptime; CharT = char; OutItrT = std::ostreambuf_iterator >; boost::date_time::time_facet::char_type = char]' src/third_party/boost-1.70.0/libs/log/src/text_file_backend.cpp:242:24: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:47:52: warning: 'this' pointer is null [-Wnonnull] 47 | static void failed() { ((Model*)0)->constraints(); } | ~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:22, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/third_party/boost-1.70.0/libs/log/src/text_file_backend.cpp:49: src/third_party/boost-1.70.0/boost/algorithm/string/concept.hpp:65:18: note: in a call to non-static member function 'void boost::algorithm::FormatterConcept::constraints() [with FormatterT = boost::algorithm::detail::const_formatF > > >; FinderT = boost::algorithm::detail::first_finderF; IteratorT = __gnu_cxx::__normal_iterator >]' 65 | void constraints() | ^~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/third_party/boost-1.70.0/libs/log/src/text_file_backend.cpp:49: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::constraint::failed() [with Model = boost::algorithm::FormatterConcept, boost::algorithm::detail::first_finderF, __gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:104:13: required from 'void boost::algorithm::find_format_all(SequenceT&, FinderT, FormatterT) [with SequenceT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::first_finderF; FormatterT = boost::algorithm::detail::empty_formatF]' src/third_party/boost-1.70.0/boost/algorithm/string/erase.hpp:593:48: required from 'void boost::algorithm::erase_all(SequenceT&, const RangeT&) [with SequenceT = std::__cxx11::basic_string; RangeT = const char*]' src/third_party/boost-1.70.0/boost/date_time/time_facet.hpp:321:38: required from 'OutItrT boost::date_time::time_facet::put(OutItrT, std::ios_base&, boost::date_time::time_facet::char_type, const time_type&) const [with time_type = boost::posix_time::ptime; CharT = char; OutItrT = std::ostreambuf_iterator >; boost::date_time::time_facet::char_type = char]' src/third_party/boost-1.70.0/libs/log/src/text_file_backend.cpp:242:24: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:47:52: warning: 'this' pointer is null [-Wnonnull] 47 | static void failed() { ((Model*)0)->constraints(); } | ~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:22, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/third_party/boost-1.70.0/libs/log/src/text_file_backend.cpp:49: src/third_party/boost-1.70.0/boost/algorithm/string/concept.hpp:65:18: note: in a call to non-static member function 'void boost::algorithm::FormatterConcept::constraints() [with FormatterT = boost::algorithm::detail::empty_formatF; FinderT = boost::algorithm::detail::first_finderF; IteratorT = __gnu_cxx::__normal_iterator >]' 65 | void constraints() | ^~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/third_party/boost-1.70.0/libs/log/src/text_file_backend.cpp:49: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::constraint::failed() [with Model = boost::algorithm::FinderConcept >, boost::algorithm::is_equal>, __gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:99:13: required from 'void boost::algorithm::find_format_all(SequenceT&, FinderT, FormatterT) [with SequenceT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::first_finderF<__gnu_cxx::__normal_iterator >, boost::algorithm::is_equal>; FormatterT = boost::algorithm::detail::empty_formatF]' src/third_party/boost-1.70.0/boost/algorithm/string/erase.hpp:593:48: required from 'void boost::algorithm::erase_all(SequenceT&, const RangeT&) [with SequenceT = std::__cxx11::basic_string; RangeT = std::__cxx11::basic_string]' src/third_party/boost-1.70.0/boost/date_time/time_facet.hpp:339:38: required from 'OutItrT boost::date_time::time_facet::put(OutItrT, std::ios_base&, boost::date_time::time_facet::char_type, const time_type&) const [with time_type = boost::posix_time::ptime; CharT = char; OutItrT = std::ostreambuf_iterator >; boost::date_time::time_facet::char_type = char]' src/third_party/boost-1.70.0/libs/log/src/text_file_backend.cpp:242:24: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:47:52: warning: 'this' pointer is null [-Wnonnull] 47 | static void failed() { ((Model*)0)->constraints(); } | ~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:22, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/third_party/boost-1.70.0/libs/log/src/text_file_backend.cpp:49: src/third_party/boost-1.70.0/boost/algorithm/string/concept.hpp:40:18: note: in a call to non-static member function 'void boost::algorithm::FinderConcept::constraints() [with FinderT = boost::algorithm::detail::first_finderF<__gnu_cxx::__normal_iterator >, boost::algorithm::is_equal>; IteratorT = __gnu_cxx::__normal_iterator >]' 40 | void constraints() | ^~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/third_party/boost-1.70.0/libs/log/src/text_file_backend.cpp:49: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::constraint::failed() [with Model = boost::algorithm::FormatterConcept, boost::algorithm::detail::first_finderF<__gnu_cxx::__normal_iterator >, boost::algorithm::is_equal>, __gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:104:13: required from 'void boost::algorithm::find_format_all(SequenceT&, FinderT, FormatterT) [with SequenceT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::first_finderF<__gnu_cxx::__normal_iterator >, boost::algorithm::is_equal>; FormatterT = boost::algorithm::detail::empty_formatF]' src/third_party/boost-1.70.0/boost/algorithm/string/erase.hpp:593:48: required from 'void boost::algorithm::erase_all(SequenceT&, const RangeT&) [with SequenceT = std::__cxx11::basic_string; RangeT = std::__cxx11::basic_string]' src/third_party/boost-1.70.0/boost/date_time/time_facet.hpp:339:38: required from 'OutItrT boost::date_time::time_facet::put(OutItrT, std::ios_base&, boost::date_time::time_facet::char_type, const time_type&) const [with time_type = boost::posix_time::ptime; CharT = char; OutItrT = std::ostreambuf_iterator >; boost::date_time::time_facet::char_type = char]' src/third_party/boost-1.70.0/libs/log/src/text_file_backend.cpp:242:24: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:47:52: warning: 'this' pointer is null [-Wnonnull] 47 | static void failed() { ((Model*)0)->constraints(); } | ~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:22, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/third_party/boost-1.70.0/libs/log/src/text_file_backend.cpp:49: src/third_party/boost-1.70.0/boost/algorithm/string/concept.hpp:65:18: note: in a call to non-static member function 'void boost::algorithm::FormatterConcept::constraints() [with FormatterT = boost::algorithm::detail::empty_formatF; FinderT = boost::algorithm::detail::first_finderF<__gnu_cxx::__normal_iterator >, boost::algorithm::is_equal>; IteratorT = __gnu_cxx::__normal_iterator >]' 65 | void constraints() | ^~~~~~~~~~~ g++ -o build/opt/mongo/db/storage/storage_engine_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/storage_engine_metadata.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, 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/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/third_party/s2/base/logging_mongo.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/base/logging_mongo.cc In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/index/wildcard_key_generator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index/wildcard_key_generator.cpp g++ -o build/opt/mongo/db/concurrency/flow_control_ticketholder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/concurrency/flow_control_ticketholder.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/projection_executor.h:38, from src/mongo/db/exec/wildcard_projection.h:30, from src/mongo/db/index/wildcard_key_generator.h:32, from src/mongo/db/index/wildcard_key_generator.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/wildcard_projection.h:30, from src/mongo/db/index/wildcard_key_generator.h:32, from src/mongo/db/index/wildcard_key_generator.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/wildcard_projection.h:30, from src/mongo/db/index/wildcard_key_generator.h:32, from src/mongo/db/index/wildcard_key_generator.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/wildcard_projection.h:30, from src/mongo/db/index/wildcard_key_generator.h:32, from src/mongo/db/index/wildcard_key_generator.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 build/opt/mongo/db/commands/kill_operations_gen.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libkill_common.a Generating build/opt/mongo/db/ftdc/ftdc_server_gen.cpp g++ -o build/opt/mongo/db/ftdc/ftdc_server_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/ftdc/ftdc_server_gen.cpp ar rcsTD build/opt/mongo/db/concurrency/libflow_control_ticketholder.a build/opt/mongo/db/concurrency/flow_control_ticketholder.o Skipping ranlib for thin archive build/opt/mongo/db/concurrency/libflow_control_ticketholder.a g++ -o build/opt/mongo/db/exec/shard_filter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/shard_filter.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from build/opt/mongo/db/ftdc/ftdc_server_gen.h:21, from build/opt/mongo/db/ftdc/ftdc_server_gen.cpp:9: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:25, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:18, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/include/js/Proxy.h:12, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:18, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/include/js/Proxy.h:12, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:18, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/include/js/Proxy.h:12, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:18, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/include/js/Proxy.h:12, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:18, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/include/js/Proxy.h:12, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:18, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/include/js/Proxy.h:12, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:18, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/include/js/Proxy.h:12, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:18, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/include/js/Proxy.h:12, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:18, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/include/js/Proxy.h:12, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/include/js/Proxy.h:12, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/include/js/Proxy.h:12, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:24, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/include/js/Proxy.h:12, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/exec/shard_filter.h:32, from src/mongo/db/exec/shard_filter.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/include/js/Proxy.h:12, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/include/js/Proxy.h:12, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/include/js/Proxy.h:12, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/include/js/Proxy.h:12, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/include/js/Proxy.h:12, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/include/js/Proxy.h:12, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/include/js/Proxy.h:12, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 5]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 5]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/proxy/ScriptedProxyHandler.cpp:610:35: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/include/js/Proxy.h:12, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/include/js/Proxy.h:12, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 6]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 6]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/proxy/ScriptedProxyHandler.cpp:1073:35: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/include/js/Proxy.h:12, from src/third_party/mozjs-60/extract/js/src/proxy/Proxy.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from build/opt/mongo/db/ftdc/ftdc_server_gen.h:21, from build/opt/mongo/db/ftdc/ftdc_server_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from build/opt/mongo/db/ftdc/ftdc_server_gen.h:21, from build/opt/mongo/db/ftdc/ftdc_server_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from build/opt/mongo/db/ftdc/ftdc_server_gen.h:21, from build/opt/mongo/db/ftdc/ftdc_server_gen.cpp:9: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_scalbn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/s_scalbn.cpp g++ -o build/opt/mongo/db/repl/bgsync.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/bgsync.cpp g++ -o build/opt/mongo/db/repl/repl_set_config_checks.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_config_checks.cpp gcc -o build/opt/third_party/unwind/dist/src/mi/backtrace.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/mi/backtrace.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/mozjs-60/extract/mfbt/lz4.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/mfbt/lz4.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/set_index_commit_quorum_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands/set_index_commit_quorum_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:37, from src/mongo/db/repl/bgsync.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:37, from src/mongo/db/repl/bgsync.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:37, from src/mongo/db/repl/bgsync.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:37, from src/mongo/db/repl/bgsync.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/snapshot_window_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/snapshot_window_options.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/set_index_commit_quorum_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/set_index_commit_quorum_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/net/libhttp_client_impl.a build/opt/mongo/util/net/http_client_curl.o Skipping ranlib for thin archive build/opt/mongo/util/net/libhttp_client_impl.a g++ -o build/opt/mongo/idl/idl_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/idl/idl_parser.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/set_index_commit_quorum_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/set_index_commit_quorum_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libsnapshot_window_options.a build/opt/mongo/db/snapshot_window_options.o build/opt/mongo/db/snapshot_window_options_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libsnapshot_window_options.a g++ -o build/opt/mongo/logv2/log_detail.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logv2/log_detail.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 g++ -o build/opt/mongo/scripting/mozjs/countdownlatch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/countdownlatch.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/kms-message/src/kms_request_str.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DKMS_MSG_STATIC -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO -Isrc/third_party/kms-message/src src/third_party/kms-message/src/kms_request_str.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/commands/current_op_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/current_op_common.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/document_source_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_cursor.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:32, from src/mongo/db/commands/current_op_common.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/server_status_servers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/server_status_servers.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:32, from src/mongo/db/commands/current_op_common.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:32, from src/mongo/db/commands/current_op_common.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:32, from src/mongo/db/commands/current_op_common.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/permissions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/permissions.cpp g++ -o build/opt/mongo/db/storage/storage_parameters_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/storage/storage_parameters_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/pipeline/document_source_cursor.h:34, from src/mongo/db/pipeline/document_source_cursor.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/pipeline/document_source_cursor.h:34, from src/mongo/db/pipeline/document_source_cursor.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/commands/server_status_servers.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/pipeline/document_source_cursor.h:34, from src/mongo/db/pipeline/document_source_cursor.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/pipeline/document_source_cursor.h:34, from src/mongo/db/pipeline/document_source_cursor.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/commands/server_status_servers.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/commands/server_status_servers.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/commands/server_status_servers.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/storage_parameters_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/storage_parameters_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/storage_parameters_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/storage_parameters_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/kms-message/src/hexlify.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DKMS_MSG_STATIC -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO -Isrc/third_party/kms-message/src src/third_party/kms-message/src/hexlify.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/query/collation/collation_index_key.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/collation/collation_index_key.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/task_runner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/task_runner.cpp g++ -o build/opt/mongo/util/progress_meter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/progress_meter.cpp g++ -o build/opt/mongo/s/request_types/add_shard_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/request_types/add_shard_request_type.cpp g++ -o build/opt/mongo/s/catalog/mongo_version_range.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/catalog/mongo_version_range.cpp g++ -o build/opt/mongo/s/request_types/commit_chunk_migration_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/request_types/commit_chunk_migration_request_type.cpp g++ -o build/opt/mongo/s/request_types/refine_collection_shard_key_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/request_types/refine_collection_shard_key_gen.cpp g++ -o build/opt/mongo/s/request_types/move_chunk_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/request_types/move_chunk_request.cpp Generating build/opt/mongo/s/chunk_version_gen.cpp g++ -o build/opt/mongo/s/chunk_version_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/chunk_version_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/refine_collection_shard_key_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/refine_collection_shard_key_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/cannot_implicitly_create_collection_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/cannot_implicitly_create_collection_info.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/refine_collection_shard_key_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/refine_collection_shard_key_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/chunk_version_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/chunk_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/request_types/create_database_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/request_types/create_database_gen.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/chunk_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/chunk_version_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/request_types/ensure_chunk_version_is_greater_than_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/request_types/ensure_chunk_version_is_greater_than_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/create_database_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/ensure_chunk_version_is_greater_than_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/ensure_chunk_version_is_greater_than_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/ensure_chunk_version_is_greater_than_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/ensure_chunk_version_is_greater_than_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.cpp g++ -o build/opt/mongo/s/catalog/type_tags.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/catalog/type_tags.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, 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/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/chunk_version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/chunk_version.cpp g++ -o build/opt/mongo/s/request_types/get_database_version_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/request_types/get_database_version_gen.cpp g++ -o build/opt/mongo/s/request_types/remove_shard_from_zone_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/request_types/remove_shard_from_zone_request_type.cpp g++ -o build/opt/mongo/s/request_types/create_collection_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/request_types/create_collection_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/get_database_version_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call 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 -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/request_types/update_zone_key_range_request_type.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/create_collection_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/catalog/type_chunk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/catalog/type_chunk.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/catalog/type_shard_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/catalog/type_shard_collection.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/request_types/merge_chunks_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/request_types/merge_chunks_request_type.cpp g++ -o build/opt/mongo/s/catalog/type_config_version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/catalog/type_config_version.cpp g++ -o build/opt/mongo/s/catalog/type_lockpings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/catalog/type_lockpings.cpp g++ -o build/opt/mongo/s/request_types/clone_catalog_data_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/request_types/clone_catalog_data_gen.cpp g++ -o build/opt/mongo/db/query/find_and_modify_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/find_and_modify_request.cpp g++ -o build/opt/mongo/db/catalog/index_catalog_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/index_catalog_entry.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clone_catalog_data_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/base_cloner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/base_cloner.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/uvectr32.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uvectr32.cpp g++ -o build/opt/mongo/db/repl/election_reason_counter_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/election_reason_counter_parser.cpp 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 g++ -o build/opt/mongo/db/op_observer_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/op_observer_util.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/base_cloner.h:39, from src/mongo/db/repl/base_cloner.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_extensions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_extensions.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:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/base_cloner.h:39, from src/mongo/db/repl/base_cloner.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/base_cloner.h:39, from src/mongo/db/repl/base_cloner.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/base_cloner.h:39, from src/mongo/db/repl/base_cloner.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_util.h:34, from src/mongo/db/op_observer_util.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_util.h:34, from src/mongo/db/op_observer_util.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/bson/mutable/element.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/mutable/element.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_util.h:34, from src/mongo/db/op_observer_util.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_util.h:34, from src/mongo/db/op_observer_util.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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/merge_chunks_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/shard_invalidated_for_targeting_exception.o build/opt/mongo/s/stale_exception.o build/opt/mongo/s/would_change_owning_shard_exception.o build/opt/mongo/s/catalog/type_chunk_base_gen.o build/opt/mongo/s/catalog/type_shard_collection_gen.o build/opt/mongo/s/chunk_version_gen.o build/opt/mongo/s/database_version_gen.o build/opt/mongo/s/request_types/balancer_collection_status_gen.o build/opt/mongo/s/request_types/clone_catalog_data_gen.o build/opt/mongo/s/request_types/clear_jumbo_flag_gen.o build/opt/mongo/s/request_types/clone_collection_options_from_primary_shard_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/ensure_chunk_version_is_greater_than_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/refine_collection_shard_key_gen.o build/opt/mongo/s/request_types/wait_for_fail_point_gen.o Skipping ranlib for thin archive build/opt/mongo/s/libcommon_s.a Generating build/opt/mongo/scripting/mozjs/scripting_util_gen.cpp g++ -o build/opt/mongo/scripting/mozjs/cursor_handle.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/cursor_handle.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/oplog_cap_maintainer_thread.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/oplog_cap_maintainer_thread.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/storage/oplog_cap_maintainer_thread.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/storage/oplog_cap_maintainer_thread.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/scatter_gather_algorithm.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/scatter_gather_algorithm.cpp g++ -o build/opt/mongo/client/read_preference.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/read_preference.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/storage/oplog_cap_maintainer_thread.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/storage/oplog_cap_maintainer_thread.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/document_source_sequential_document_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_sequential_document_cache.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 g++ -o build/opt/mongo/db/ops/single_write_result_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/ops/single_write_result_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:32, from src/mongo/db/pipeline/document_source_sequential_document_cache.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call gcc -o build/opt/third_party/kms-message/src/kms_caller_identity_request.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DKMS_MSG_STATIC -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO -Isrc/third_party/kms-message/src src/third_party/kms-message/src/kms_caller_identity_request.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/kms-message/src/kms_kv_list.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DKMS_MSG_STATIC -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO -Isrc/third_party/kms-message/src src/third_party/kms-message/src/kms_kv_list.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/kms-message/src/kms_port.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DKMS_MSG_STATIC -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO -Isrc/third_party/kms-message/src src/third_party/kms-message/src/kms_port.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/kms-message/src/kms_request.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DKMS_MSG_STATIC -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO -Isrc/third_party/kms-message/src src/third_party/kms-message/src/kms_request.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/kms-message/src/kms_response.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DKMS_MSG_STATIC -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO -Isrc/third_party/kms-message/src src/third_party/kms-message/src/kms_response.c In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:32, from src/mongo/db/pipeline/document_source_sequential_document_cache.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call gcc -o build/opt/third_party/kms-message/src/kms_decrypt_request.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DKMS_MSG_STATIC -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO -Isrc/third_party/kms-message/src src/third_party/kms-message/src/kms_decrypt_request.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:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call gcc -o build/opt/third_party/kms-message/src/kms_crypto_libcrypto.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DKMS_MSG_STATIC -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO -Isrc/third_party/kms-message/src src/third_party/kms-message/src/kms_crypto_libcrypto.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/third_party/kms-message/libkms-message.a build/opt/third_party/kms-message/src/hexlify.o build/opt/third_party/kms-message/src/kms_azure_request.o build/opt/third_party/kms-message/src/kms_b64.o build/opt/third_party/kms-message/src/kms_caller_identity_request.o build/opt/third_party/kms-message/src/kms_decrypt_request.o build/opt/third_party/kms-message/src/kms_encrypt_request.o build/opt/third_party/kms-message/src/kms_gcp_request.o build/opt/third_party/kms-message/src/kms_kv_list.o build/opt/third_party/kms-message/src/kms_message.o build/opt/third_party/kms-message/src/kms_port.o build/opt/third_party/kms-message/src/kms_request_opt.o build/opt/third_party/kms-message/src/kms_request_str.o build/opt/third_party/kms-message/src/kms_request.o build/opt/third_party/kms-message/src/kms_response_parser.o build/opt/third_party/kms-message/src/kms_response.o build/opt/third_party/kms-message/src/sort.o build/opt/third_party/kms-message/src/kms_crypto_libcrypto.o Skipping ranlib for thin archive build/opt/third_party/kms-message/libkms-message.a g++ -o build/opt/third_party/boost-1.70.0/libs/filesystem/src/path.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/filesystem/src/path.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:32, from src/mongo/db/pipeline/document_source_sequential_document_cache.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:32, from src/mongo/db/pipeline/document_source_sequential_document_cache.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/exec/document_value/document_comparator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/document_value/document_comparator.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ops/single_write_result_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/liboplog_cap_maintainer_thread.a build/opt/mongo/db/storage/oplog_cap_maintainer_thread.o Skipping ranlib for thin archive build/opt/mongo/db/storage/liboplog_cap_maintainer_thread.a g++ -o build/opt/mongo/base/data_range_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/data_range_cursor.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/ops/delete.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ops/delete.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/unwind/dist/src/mi/dyn-cancel.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/mi/dyn-cancel.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/x86_64/Lstash_frame.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/x86_64/Lstash_frame.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/x86_64/Linit_remote.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/x86_64/Linit_remote.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/mi/Lfind_dynamic_proc_info.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/mi/Lfind_dynamic_proc_info.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/elf64.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/elf64.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/x86_64/Lapply_reg_state.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/x86_64/Lapply_reg_state.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/mi/Lget_proc_info_by_ip.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/mi/Lget_proc_info_by_ip.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/mi/Lget_reg.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/mi/Lget_reg.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/mi/Lput_dynamic_unwind_info.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/mi/Lput_dynamic_unwind_info.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/dwarf/Lparser.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/dwarf/Lparser.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/dwarf/Lfde.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/dwarf/Lfde.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/os-linux.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/os-linux.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/x86_64/Lstep.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/x86_64/Lstep.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/dwarf/global.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/dwarf/global.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/mi/Lset_caching_policy.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/mi/Lset_caching_policy.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/x86_64/Lcreate_addr_space.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/x86_64/Lcreate_addr_space.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/dwarf/Lfind_unwind_table.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/dwarf/Lfind_unwind_table.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/x86_64/Lget_save_loc.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/x86_64/Lget_save_loc.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/x86_64/Lregs.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/x86_64/Lregs.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/x86_64/Lreg_states_iterate.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/x86_64/Lreg_states_iterate.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/x86_64/Lresume.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/x86_64/Lresume.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/x86_64/Lglobal.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/x86_64/Lglobal.c src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/unwind/dist/src/mi/Ldyn-extract.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/mi/Ldyn-extract.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/mi/Lset_reg.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/mi/Lset_reg.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/dwarf/Lpe.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/dwarf/Lpe.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/mi/dyn-register.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/mi/dyn-register.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/unwind/dist/src/x86_64/is_fpreg.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fcommon -fexceptions -Wno-unused-result -Wno-unused-value -Wno-unused-variable -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_CONFIG_H -D_GNU_SOURCE -Isrc/third_party/unwind/platform/linux_x86_64/build/include -Isrc/third_party/unwind/dist/src -Isrc/third_party/unwind/dist/include -Isrc/third_party/unwind/dist/include/tdep-x86_64 src/third_party/unwind/dist/src/x86_64/is_fpreg.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/opt/third_party/unwind/libunwind.a build/opt/third_party/unwind/dist/src/dwarf/global.o build/opt/third_party/unwind/dist/src/dwarf/Lexpr.o build/opt/third_party/unwind/dist/src/dwarf/Lfde.o build/opt/third_party/unwind/dist/src/dwarf/Lfind_proc_info-lsb.o build/opt/third_party/unwind/dist/src/dwarf/Lfind_unwind_table.o build/opt/third_party/unwind/dist/src/dwarf/Lparser.o build/opt/third_party/unwind/dist/src/dwarf/Lpe.o build/opt/third_party/unwind/dist/src/elf64.o build/opt/third_party/unwind/dist/src/mi/backtrace.o build/opt/third_party/unwind/dist/src/mi/dyn-cancel.o build/opt/third_party/unwind/dist/src/mi/dyn-info-list.o build/opt/third_party/unwind/dist/src/mi/dyn-register.o build/opt/third_party/unwind/dist/src/mi/flush_cache.o build/opt/third_party/unwind/dist/src/mi/init.o build/opt/third_party/unwind/dist/src/mi/Ldestroy_addr_space.o build/opt/third_party/unwind/dist/src/mi/Ldyn-extract.o build/opt/third_party/unwind/dist/src/mi/Lfind_dynamic_proc_info.o build/opt/third_party/unwind/dist/src/mi/Lget_accessors.o build/opt/third_party/unwind/dist/src/mi/Lget_fpreg.o build/opt/third_party/unwind/dist/src/mi/Lget_proc_info_by_ip.o build/opt/third_party/unwind/dist/src/mi/Lget_proc_name.o build/opt/third_party/unwind/dist/src/mi/Lget_reg.o build/opt/third_party/unwind/dist/src/mi/Lput_dynamic_unwind_info.o build/opt/third_party/unwind/dist/src/mi/Lset_cache_size.o build/opt/third_party/unwind/dist/src/mi/Lset_caching_policy.o build/opt/third_party/unwind/dist/src/mi/Lset_fpreg.o build/opt/third_party/unwind/dist/src/mi/Lset_reg.o build/opt/third_party/unwind/dist/src/mi/mempool.o build/opt/third_party/unwind/dist/src/mi/strerror.o build/opt/third_party/unwind/dist/src/os-linux.o build/opt/third_party/unwind/dist/src/x86_64/getcontext.o build/opt/third_party/unwind/dist/src/x86_64/is_fpreg.o build/opt/third_party/unwind/dist/src/x86_64/Lapply_reg_state.o build/opt/third_party/unwind/dist/src/x86_64/Lcreate_addr_space.o build/opt/third_party/unwind/dist/src/x86_64/Lget_proc_info.o build/opt/third_party/unwind/dist/src/x86_64/Lget_save_loc.o build/opt/third_party/unwind/dist/src/x86_64/Lglobal.o build/opt/third_party/unwind/dist/src/x86_64/Linit.o build/opt/third_party/unwind/dist/src/x86_64/Linit_local.o build/opt/third_party/unwind/dist/src/x86_64/Linit_remote.o build/opt/third_party/unwind/dist/src/x86_64/Lregs.o build/opt/third_party/unwind/dist/src/x86_64/Lreg_states_iterate.o build/opt/third_party/unwind/dist/src/x86_64/Lresume.o build/opt/third_party/unwind/dist/src/x86_64/Lstash_frame.o build/opt/third_party/unwind/dist/src/x86_64/Lstep.o build/opt/third_party/unwind/dist/src/x86_64/Ltrace.o build/opt/third_party/unwind/dist/src/x86_64/regname.o build/opt/third_party/unwind/dist/src/x86_64/setcontext.o build/opt/third_party/unwind/dist/src/x86_64/Los-linux.o Skipping ranlib for thin archive build/opt/third_party/unwind/libunwind.a g++ -o build/opt/mongo/db/s/transaction_coordinator_factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/transaction_coordinator_factory.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/ops/delete_request.h:37, from src/mongo/db/ops/delete.h:33, from src/mongo/db/ops/delete.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/ops/delete_request.h:37, from src/mongo/db/ops/delete.h:33, from src/mongo/db/ops/delete.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libcloner.a build/opt/mongo/db/cloner.o build/opt/mongo/db/cloner_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libcloner.a g++ -o build/opt/mongo/db/s/chunk_split_state_driver.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/chunk_split_state_driver.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/ops/delete_request.h:37, from src/mongo/db/ops/delete.h:33, from src/mongo/db/ops/delete.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/ops/delete_request.h:37, from src/mongo/db/ops/delete.h:33, from src/mongo/db/ops/delete.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/s/libchunk_splitter.a build/opt/mongo/db/s/chunk_split_state_driver.o Skipping ranlib for thin archive build/opt/mongo/db/s/libchunk_splitter.a g++ -o build/opt/mongo/rpc/metadata/oplog_query_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/metadata/oplog_query_metadata.cpp g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_atanh.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/e_atanh.cpp ar rcsTD build/opt/mongo/db/libmulti_key_path_tracker.a build/opt/mongo/db/multi_key_path_tracker.o Skipping ranlib for thin archive build/opt/mongo/db/libmulti_key_path_tracker.a 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 g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp g++ -o build/opt/mongo/bson/mutable/document.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/mutable/document.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/rpc/metadata/oplog_query_metadata.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/rpc/metadata/oplog_query_metadata.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/bson/mutable/libmutable_bson.a build/opt/mongo/bson/mutable/document.o build/opt/mongo/bson/mutable/element.o src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/bson/mutable/libmutable_bson.a src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/btree/row_modify.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/row_modify.c src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/rpc/metadata/oplog_query_metadata.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/rpc/metadata/oplog_query_metadata.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/config/config_ext.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/config/config_ext.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/tiered/tiered_handle.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/tiered/tiered_handle.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/commands/write_commands/write_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/write_commands/write_commands.cpp In file included from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:23, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/query/explain_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/explain_options.cpp In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/StringBuffer.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/StringBuffer.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/StringBuffer.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:22, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::OffThreadPromiseTask* const; HashPolicy = js::HashSet, js::SystemAllocPolicy>::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::OffThreadPromiseTask*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/builtin/Promise.cpp:3725:16: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap >::MapHashPolicy; AllocPolicy = js::TempAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = js::frontend::UsedNameTracker::UsedNameInfo; HashPolicy = js::DefaultHasher; AllocPolicy = js::TempAllocPolicy]' src/third_party/mozjs-60/extract/js/src/frontend/ParseContext.h:167:19: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap >::MapHashPolicy, js::TempAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap >::MapHashPolicy, js::TempAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 64]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 64]' src/third_party/mozjs-60/extract/js/src/builtin/ReflectParse.cpp:252:69: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/builtin/Object.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Object.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:74:25: required from 'bool js::detail::InlineTable::switchToTable() [with InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:298:22: required from 'bool js::detail::InlineTable::add(js::detail::InlineTable::AddPtr&, KeyInput&&, Args&& ...) [with KeyInput = JSAtom*&; Args = {js::frontend::DeclaredNameInfo}; InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:535:25: required from 'bool js::InlineMap::add(js::InlineMap::AddPtr&, KeyInput&&, ValueInput&&) [with KeyInput = JSAtom*&; ValueInput = js::frontend::DeclaredNameInfo; Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; long unsigned int InlineEntries = 24; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; js::InlineMap::AddPtr = js::detail::InlineTable, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry, js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>, js::DefaultHasher, js::SystemAllocPolicy, 24>::AddPtr]' src/third_party/mozjs-60/extract/js/src/frontend/ParseContext.h:311:53: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/commands/write_commands/write_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/db/commands/plan_cache_clear_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/plan_cache_clear_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:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/commands/write_commands/write_commands.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/ucnv2022.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv2022.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/commands/write_commands/write_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/commands/write_commands/write_commands.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/db/free_mon/free_mon_storage_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/free_mon/free_mon_storage_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_storage_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/plan_cache_clear_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/plan_cache_clear_command.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/plan_cache_clear_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/plan_cache_clear_command.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/scripting/mozjs/dbref.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/dbref.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/block/block_write.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/block/block_write.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/write_concern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/write_concern.cpp g++ -o build/opt/mongo/db/catalog/document_validation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/document_validation.cpp gcc -o build/opt/third_party/wiredtiger/src/block/block_session.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/block/block_session.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/opt/mongo/db/auth/libauth_options.a build/opt/mongo/db/auth/auth_options_gen.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauth_options.a gcc -o build/opt/third_party/wiredtiger/src/os_posix/os_dlopen.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_dlopen.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 g++ -o build/opt/mongo/db/commands/map_reduce_out_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/map_reduce_out_options.cpp g++ -o build/opt/mongo/db/server_transactions_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/server_transactions_metrics.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/write_concern.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/flow_control.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/flow_control.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/write_concern.cpp:44: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/write_concern.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/write_concern.cpp:44: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/add_shard_cmd_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/s/add_shard_cmd_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/server_transactions_metrics.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/server_transactions_metrics.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/flow_control.h:34, from src/mongo/db/storage/flow_control.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/server_transactions_metrics.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/server_transactions_metrics.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/add_shard_cmd_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/flow_control.h:34, from src/mongo/db/storage/flow_control.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/flow_control.h:34, from src/mongo/db/storage/flow_control.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/flow_control.h:34, from src/mongo/db/storage/flow_control.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/query/cluster_aggregate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/query/cluster_aggregate.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/librecovery_unit_base.a build/opt/mongo/db/storage/recovery_unit.o Skipping ranlib for thin archive build/opt/mongo/db/storage/librecovery_unit_base.a ar rcsTD build/opt/mongo/db/repl/libelection_reason_counter_parser.a build/opt/mongo/db/repl/election_reason_counter_parser.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libelection_reason_counter_parser.a In file included from src/mongo/s/query/cluster_aggregate.h:38, from src/mongo/s/query/cluster_aggregate.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/exec/projection_executor_utils.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/projection_executor_utils.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 g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_log10.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/e_log10.cpp g++ -o build/opt/mongo/db/session_txn_record_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/session_txn_record_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/s/query/cluster_aggregate.h:39, from src/mongo/s/query/cluster_aggregate.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/s/query/cluster_aggregate.h:39, from src/mongo/s/query/cluster_aggregate.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/s/query/cluster_aggregate.h:39, from src/mongo/s/query/cluster_aggregate.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/projection_executor.h:38, from src/mongo/db/exec/projection_executor_utils.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/projection_executor_utils.cpp:30: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/libflow_control.a build/opt/mongo/db/storage/flow_control.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libflow_control.a src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/catalog/collection_catalog_helper.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/collection_catalog_helper.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/projection_executor_utils.cpp:30: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/projection_executor_utils.cpp:30: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/session_txn_record_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/collection_catalog_helper.h:32, from src/mongo/db/catalog/collection_catalog_helper.cpp:30: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/collection_catalog_helper.h:32, from src/mongo/db/catalog/collection_catalog_helper.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/collection_catalog_helper.h:32, from src/mongo/db/catalog/collection_catalog_helper.cpp:30: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/catalog/collection_catalog_helper.h:32, from src/mongo/db/catalog/collection_catalog_helper.cpp:30: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/key_generator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/key_generator.cpp g++ -o build/opt/mongo/db/repl/data_replicator_external_state_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/data_replicator_external_state_impl.cpp g++ -o build/opt/mongo/db/pipeline/document_source_list_cached_and_active_users.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_list_cached_and_active_users.cpp ar rcsTD build/opt/mongo/db/catalog/libcollection_catalog_helper.a build/opt/mongo/db/catalog/collection_catalog_helper.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libcollection_catalog_helper.a ar rcsTD build/opt/mongo/db/libperiodic_runner_job_decrease_snapshot_cache_pressure.a build/opt/mongo/db/periodic_runner_job_decrease_snapshot_cache_pressure.o Skipping ranlib for thin archive build/opt/mongo/db/libperiodic_runner_job_decrease_snapshot_cache_pressure.a g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_acos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/e_acos.cpp g++ -o build/opt/mongo/db/op_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/op_observer.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/data_replicator_external_state_impl.h:32, from src/mongo/db/repl/data_replicator_external_state_impl.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/data_replicator_external_state_impl.h:32, from src/mongo/db/repl/data_replicator_external_state_impl.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/ftdc/decompressor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ftdc/decompressor.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_list_cached_and_active_users.h:35, from src/mongo/db/pipeline/document_source_list_cached_and_active_users.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/data_replicator_external_state_impl.h:32, from src/mongo/db/repl/data_replicator_external_state_impl.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/data_replicator_external_state_impl.h:32, from src/mongo/db/repl/data_replicator_external_state_impl.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_list_cached_and_active_users.h:35, from src/mongo/db/pipeline/document_source_list_cached_and_active_users.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_list_cached_and_active_users.h:35, from src/mongo/db/pipeline/document_source_list_cached_and_active_users.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_list_cached_and_active_users.h:35, from src/mongo/db/pipeline/document_source_list_cached_and_active_users.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/client/sasl_aws_protocol_common_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/client/sasl_aws_protocol_common_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/client/sasl_aws_protocol_common_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/sasl_aws_protocol_common_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/sasl_aws_protocol_common_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/sasl_aws_protocol_common_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/config_server_catalog_cache_loader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/config_server_catalog_cache_loader.cpp g++ -o build/opt/mongo/s/config_server_client.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/config_server_client.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/shard_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/shard_util.cpp ar rcsTD build/opt/mongo/client/libsasl_aws_common.a build/opt/mongo/client/sasl_aws_protocol_common_gen.o Skipping ranlib for thin archive build/opt/mongo/client/libsasl_aws_common.a gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_cb.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_cb.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 g++ -o build/opt/mongo/logv2/log_domain.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logv2/log_domain.cpp 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:134:21: warning: redundant move in return statement [-Wredundant-move] 134 | return std::move(splitPoints); | ~~~~~~~~~^~~~~~~~~~~~~ src/mongo/s/shard_util.cpp:134:21: note: remove 'std::move' call g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/process_name.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/process_name.cpp gcc -o build/opt/third_party/wiredtiger/src/packing/pack_stream.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/packing/pack_stream.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/schema/schema_plan.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/schema/schema_plan.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/util/net/ssl_manager_openssl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/ssl_manager_openssl.cpp g++ -o build/opt/mongo/db/update/update_driver.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/update_driver.cpp gcc -o build/opt/third_party/wiredtiger/src/support/hex.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/hex.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/icu4c-57.1/source/common/brkiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/brkiter.cpp 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/s/libcoreshard.a Generating build/opt/mongo/db/mongod_options_general_gen.cpp gcc -o build/opt/third_party/wiredtiger/src/support/update_vector.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/update_vector.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/mongod_options_general_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/mongod_options_general_gen.cpp g++ -o build/opt/mongo/db/auth/sasl_plain_server_conversation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/sasl_plain_server_conversation.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/update/update_driver.h:42, from src/mongo/db/update/update_driver.cpp:30: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/db/update/update_driver.h:42, from src/mongo/db/update/update_driver.cpp:30: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/db/update/update_driver.h:42, from src/mongo/db/update/update_driver.cpp:30: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/update/update_driver.h:42, from src/mongo/db/update/update_driver.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/util/net/ssl_manager_openssl.cpp: In lambda function: src/mongo/util/net/ssl_manager_openssl.cpp:738:29: warning: redundant move in return statement [-Wredundant-move] 738 | return std::move(response); | ~~~~~~~~~^~~~~~~~~~ src/mongo/util/net/ssl_manager_openssl.cpp:738:29: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_policies.h:34, from src/mongo/db/auth/sasl_plain_server_conversation.h:32, from src/mongo/db/auth/sasl_plain_server_conversation.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mongod_options_general_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_policies.h:34, from src/mongo/db/auth/sasl_plain_server_conversation.h:32, from src/mongo/db/auth/sasl_plain_server_conversation.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_policies.h:34, from src/mongo/db/auth/sasl_plain_server_conversation.h:32, from src/mongo/db/auth/sasl_plain_server_conversation.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_policies.h:34, from src/mongo/db/auth/sasl_plain_server_conversation.h:32, from src/mongo/db/auth/sasl_plain_server_conversation.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mongod_options_general_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call In file included from src/mongo/util/net/ssl_manager_openssl.cpp:67: src/mongo/util/read_through_cache.h: In instantiation of 'mongo::Future mongo::ReadThroughCache::_asyncLookupWhileInvalidated(std::unique_lock, mongo::ReadThroughCache::InProgressLookup&) [with Key = mongo::{anonymous}::OCSPCacheKey; Value = mongo::{anonymous}::OCSPFetchResponse]': src/mongo/util/read_through_cache.h:234:24: required from 'mongo::SharedSemiFuture::ValueHandle> mongo::ReadThroughCache::acquireAsync(const Key&) [with Key = mongo::{anonymous}::OCSPCacheKey; Value = mongo::{anonymous}::OCSPFetchResponse]' src/mongo/util/net/ssl_manager_openssl.cpp:1828:49: required from here src/mongo/util/read_through_cache.h:435:32: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] 435 | return std::move(future); | ^ src/mongo/util/read_through_cache.h:435:32: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mongod_options_general_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mongod_options_general_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/util/invalidating_lru_cache.h:38, from src/mongo/util/read_through_cache.h:40, from src/mongo/util/net/ssl_manager_openssl.cpp:67: src/mongo/util/lru_cache.h: In instantiation of 'boost::optional > mongo::LRUCache::add(const K&, V) [with K = mongo::{anonymous}::OCSPCacheKey; V = std::shared_ptr::StoredValue>::StoredValue>; Hash = absl::hash_internal::Hash; KeyEqual = std::equal_to]': src/mongo/util/invalidating_lru_cache.h:232:38: required from 'mongo::InvalidatingLRUCache::ValueHandle mongo::InvalidatingLRUCache::insertOrAssignAndGet(const Key&, Value&&) [with Key = mongo::{anonymous}::OCSPCacheKey; Value = mongo::ReadThroughCache::StoredValue]' src/mongo/util/read_through_cache.h:246:76: required from 'mongo::SharedSemiFuture::ValueHandle> mongo::ReadThroughCache::acquireAsync(const Key&) [with Key = mongo::{anonymous}::OCSPCacheKey; Value = mongo::{anonymous}::OCSPFetchResponse]' src/mongo/util/net/ssl_manager_openssl.cpp:1828:49: required from here src/mongo/util/lru_cache.h:108:34: warning: redundant move in return statement [-Wredundant-move] 108 | return std::move(pair); | ^ src/mongo/util/lru_cache.h:108:34: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/update/update_driver.h:42, from src/mongo/db/update/update_driver.cpp:30: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call 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 g++ -o build/opt/mongo/db/pipeline/document_source_lookup_change_pre_image.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_lookup_change_pre_image.cpp ar rcsTD build/opt/mongo/rpc/libmetadata_impersonated_user.a build/opt/mongo/rpc/metadata/impersonated_user_metadata.o build/opt/mongo/rpc/metadata/impersonated_user_metadata_gen.o Skipping ranlib for thin archive build/opt/mongo/rpc/libmetadata_impersonated_user.a 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 g++ -o build/opt/mongo/db/generic_cursor_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/generic_cursor_gen.cpp g++ -o build/opt/mongo/db/pipeline/document_source_geo_near_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_geo_near_cursor.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_lookup_change_pre_image.h:32, from src/mongo/db/pipeline/document_source_lookup_change_pre_image.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_lookup_change_pre_image.h:32, from src/mongo/db/pipeline/document_source_lookup_change_pre_image.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/util/base64.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/base64.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_lookup_change_pre_image.h:32, from src/mongo/db/pipeline/document_source_lookup_change_pre_image.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_lookup_change_pre_image.h:32, from src/mongo/db/pipeline/document_source_lookup_change_pre_image.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/generic_cursor_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/backup_cursor_hooks.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/backup_cursor_hooks.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/pipeline/document_source_geo_near_cursor.h:39, from src/mongo/db/pipeline/document_source_geo_near_cursor.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/pipeline/document_source_geo_near_cursor.h:39, from src/mongo/db/pipeline/document_source_geo_near_cursor.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/pipeline/document_source_geo_near_cursor.h:39, from src/mongo/db/pipeline/document_source_geo_near_cursor.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/pipeline/document_source_geo_near_cursor.h:39, from src/mongo/db/pipeline/document_source_geo_near_cursor.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/util/procparser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/procparser.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/util/concurrency/spin_lock.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/concurrency/spin_lock.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/finder.hpp:16, from src/mongo/util/procparser.cpp:38: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: required from 'struct boost::CopyConstructible' src/third_party/boost-1.70.0/boost/range/concepts.hpp:125:16: required from 'struct boost::range_detail::IncrementableIteratorConcept' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: [ skipping 7 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range; SinglePassRange2 = boost::iterator_range]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = const char*; Iterator2T = const char*]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = const char*]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator; Facade2 = boost::algorithm::split_iterator; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator; V1 = const boost::iterator_range; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator; V2 = const boost::iterator_range; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/mongo/util/procparser.cpp:222:42: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/finder.hpp:16, from src/mongo/util/procparser.cpp:38: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::CopyConstructible]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/finder.hpp:16, from src/mongo/util/procparser.cpp:38: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:114:7: [ skipping 11 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range; SinglePassRange2 = boost::iterator_range]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = const char*; Iterator2T = const char*]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = const char*]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator; Facade2 = boost::algorithm::split_iterator; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator; V1 = const boost::iterator_range; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator; V2 = const boost::iterator_range; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/mongo/util/procparser.cpp:222:42: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/finder.hpp:16, from src/mongo/util/procparser.cpp:38: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/finder.hpp:16, from src/mongo/util/procparser.cpp:38: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/iterator/iterator_concepts.hpp:114:7: required from 'struct boost::range_detail::IncrementableIteratorConcept' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 6 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range; SinglePassRange2 = boost::iterator_range]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = const char*; Iterator2T = const char*]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = const char*]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator; Facade2 = boost::algorithm::split_iterator; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator; V1 = const boost::iterator_range; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator; V2 = const boost::iterator_range; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/mongo/util/procparser.cpp:222:42: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/finder.hpp:16, from src/mongo/util/procparser.cpp:38: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::incrementable_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/finder.hpp:16, from src/mongo/util/procparser.cpp:38: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:136:13: required from 'struct boost::range_detail::IncrementableIteratorConcept' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 6 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range; SinglePassRange2 = boost::iterator_range]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = const char*; Iterator2T = const char*]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = const char*]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator; Facade2 = boost::algorithm::split_iterator; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator; V1 = const boost::iterator_range; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator; V2 = const boost::iterator_range; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/mongo/util/procparser.cpp:222:42: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/finder.hpp:16, from src/mongo/util/procparser.cpp:38: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::IncrementableIteratorConcept]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/finder.hpp:16, from src/mongo/util/procparser.cpp:38: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: required from 'struct boost::EqualityComparable' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 6 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range; SinglePassRange2 = boost::iterator_range]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = const char*; Iterator2T = const char*]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = const char*]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator; Facade2 = boost::algorithm::split_iterator; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator; V1 = const boost::iterator_range; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator; V2 = const boost::iterator_range; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/mongo/util/procparser.cpp:222:42: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/finder.hpp:16, from src/mongo/util/procparser.cpp:38: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::EqualityComparable]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/finder.hpp:16, from src/mongo/util/procparser.cpp:38: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/range/concepts.hpp:152:13: [ skipping 10 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range; SinglePassRange2 = boost::iterator_range]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = const char*; Iterator2T = const char*]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = const char*]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator; Facade2 = boost::algorithm::split_iterator; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator; V1 = const boost::iterator_range; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator; V2 = const boost::iterator_range; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/mongo/util/procparser.cpp:222:42: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/finder.hpp:16, from src/mongo/util/procparser.cpp:38: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/finder.hpp:16, from src/mongo/util/procparser.cpp:38: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:152:13: required from 'struct boost::range_detail::SinglePassIteratorConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/range/concepts.hpp:278:9: [ skipping 5 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range; SinglePassRange2 = boost::iterator_range]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = const char*; Iterator2T = const char*]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = const char*]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator; Facade2 = boost::algorithm::split_iterator; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator; V1 = const boost::iterator_range; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator; V2 = const boost::iterator_range; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/mongo/util/procparser.cpp:222:42: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/finder.hpp:16, from src/mongo/util/procparser.cpp:38: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::single_pass_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/finder.hpp:16, from src/mongo/util/procparser.cpp:38: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: required from 'struct boost::range_detail::SinglePassIteratorConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_)>' src/third_party/boost-1.70.0/boost/range/concepts.hpp:278:9: [ skipping 5 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range; SinglePassRange2 = boost::iterator_range]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = const char*; Iterator2T = const char*]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = const char*]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator; Facade2 = boost::algorithm::split_iterator; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator; V1 = const boost::iterator_range; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator; V2 = const boost::iterator_range; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/mongo/util/procparser.cpp:222:42: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/finder.hpp:16, from src/mongo/util/procparser.cpp:38: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::SinglePassIteratorConcept]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/finder.hpp:16, from src/mongo/util/procparser.cpp:38: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::range_detail::SinglePassIteratorConcept]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:278:9: required from 'struct boost::SinglePassRangeConcept >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range; SinglePassRange2 = boost::iterator_range]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = const char*; Iterator2T = const char*]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = const char*]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator; Facade2 = boost::algorithm::split_iterator; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator; V1 = const boost::iterator_range; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator; V2 = const boost::iterator_range; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/mongo/util/procparser.cpp:222:42: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/finder.hpp:16, from src/mongo/util/procparser.cpp:38: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::range_detail::SinglePassIteratorConcept::~SinglePassIteratorConcept() [with Iterator = const char*]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 158 | BOOST_CONCEPT_USAGE(SinglePassIteratorConcept) | ^~~~~~~~~~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/finder.hpp:16, from src/mongo/util/procparser.cpp:38: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > >]': src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: required from 'struct boost::SinglePassRangeConcept >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied > >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: required from 'struct boost::concepts::requirement_ >)>' src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range; SinglePassRange2 = boost::iterator_range]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = const char*; Iterator2T = const char*]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = const char*]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator; Facade2 = boost::algorithm::split_iterator; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator; V1 = const boost::iterator_range; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator; V2 = const boost::iterator_range; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/mongo/util/procparser.cpp:222:42: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/finder.hpp:16, from src/mongo/util/procparser.cpp:38: src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:5: note: in a call to non-static member function 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::SinglePassRangeConcept >]' 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ^ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/finder.hpp:16, from src/mongo/util/procparser.cpp:38: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::requirement::failed() [with Model = boost::SinglePassRangeConcept >]': src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range; SinglePassRange2 = boost::iterator_range]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = const char*; Iterator2T = const char*]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = const char*]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator; Facade2 = boost::algorithm::split_iterator; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator; V1 = const boost::iterator_range; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator; V2 = const boost::iterator_range; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/mongo/util/procparser.cpp:222:42: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: warning: 'this' pointer is null [-Wnonnull] 39 | static void failed() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/concept_check.hpp:31, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/finder.hpp:16, from src/mongo/util/procparser.cpp:38: src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::SinglePassRangeConcept::~SinglePassRangeConcept() [with T = const boost::iterator_range]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 284 | BOOST_CONCEPT_USAGE(SinglePassRangeConcept) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::CopyConstructible]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: required from 'struct boost::CopyConstructible' src/third_party/boost-1.70.0/boost/range/concepts.hpp:125:16: required from 'struct boost::range_detail::IncrementableIteratorConcept' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: [ skipping 8 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range; SinglePassRange2 = boost::iterator_range]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = const char*; Iterator2T = const char*]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = const char*]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator; Facade2 = boost::algorithm::split_iterator; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator; V1 = const boost::iterator_range; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator; V2 = const boost::iterator_range; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/mongo/util/procparser.cpp:222:42: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::CopyConstructible::~CopyConstructible() [with TT = const char*]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:167:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 167 | BOOST_CONCEPT_USAGE(CopyConstructible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 12 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range; SinglePassRange2 = boost::iterator_range]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = const char*; Iterator2T = const char*]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = const char*]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator; Facade2 = boost::algorithm::split_iterator; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator; V1 = const boost::iterator_range; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator; V2 = const boost::iterator_range; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/mongo/util/procparser.cpp:222:42: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::incrementable_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::IncrementableIteratorConcept]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/range/concepts.hpp:136:13: required from 'struct boost::range_detail::IncrementableIteratorConcept' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: [ skipping 7 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range; SinglePassRange2 = boost::iterator_range]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = const char*; Iterator2T = const char*]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = const char*]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator; Facade2 = boost::algorithm::split_iterator; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator; V1 = const boost::iterator_range; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator; V2 = const boost::iterator_range; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/mongo/util/procparser.cpp:222:42: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::range_detail::IncrementableIteratorConcept::~IncrementableIteratorConcept() [with Iterator = const char*]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:136:13: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 136 | BOOST_CONCEPT_USAGE(IncrementableIteratorConcept) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::EqualityComparable]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: required from 'struct boost::EqualityComparable' src/third_party/boost-1.70.0/boost/range/concepts.hpp:147:16: required from 'struct boost::range_detail::SinglePassIteratorConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: [ skipping 7 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range; SinglePassRange2 = boost::iterator_range]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = const char*; Iterator2T = const char*]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = const char*]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator; Facade2 = boost::algorithm::split_iterator; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator; V1 = const boost::iterator_range; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator; V2 = const boost::iterator_range; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/mongo/util/procparser.cpp:222:42: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::EqualityComparable::~EqualityComparable() [with TT = const char*]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:233:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 233 | BOOST_CONCEPT_USAGE(EqualityComparable) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::Convertible]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: required from 'struct boost::Convertible' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::Convertible]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 11 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range; SinglePassRange2 = boost::iterator_range]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = const char*; Iterator2T = const char*]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = const char*]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator; Facade2 = boost::algorithm::split_iterator; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator; V1 = const boost::iterator_range; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator; V2 = const boost::iterator_range; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/mongo/util/procparser.cpp:222:42: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::Convertible::~Convertible() [with X = boost::iterators::random_access_traversal_tag; Y = boost::iterators::single_pass_traversal_tag]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/concept_check.hpp:208:5: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 208 | BOOST_CONCEPT_USAGE(Convertible) { | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::range_detail::SinglePassIteratorConcept]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements >]' src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: required from 'struct boost::range_detail::SinglePassIteratorConcept' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::range_detail::SinglePassIteratorConcept]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: required from 'struct boost::concepts::not_satisfied >' src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:51:8: [ skipping 6 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range; SinglePassRange2 = boost::iterator_range]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = const char*; Iterator2T = const char*]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = const char*]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator; Facade2 = boost::algorithm::split_iterator; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator; V1 = const boost::iterator_range; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator; V2 = const boost::iterator_range; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/mongo/util/procparser.cpp:222:42: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::range_detail::SinglePassIteratorConcept::~SinglePassIteratorConcept() [with Iterator = const char*]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:158:13: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 158 | BOOST_CONCEPT_USAGE(SinglePassIteratorConcept) | ^~~~~~~~~~~~~~~~~~~ src/third_party/boost-1.70.0/boost/concept/usage.hpp: In instantiation of 'boost::concepts::usage_requirements::~usage_requirements() [with Model = boost::SinglePassRangeConcept >]': src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:39:47: required from 'static void boost::concepts::requirement::failed() [with Model = boost::concepts::usage_requirements > >]' src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: required from 'struct boost::SinglePassRangeConcept >' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:32:62: required by substitution of 'template boost::concepts::detail::yes boost::concepts::detail::has_constraints_(Model*, boost::concepts::detail::wrap_constraints*) [with Model = boost::SinglePassRangeConcept >]' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:42:5: required from 'const bool boost::concepts::not_satisfied > >::value' src/third_party/boost-1.70.0/boost/concept/detail/has_constraints.hpp:45:51: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] src/third_party/boost-1.70.0/boost/range/algorithm/equal.hpp:174:13: required from 'bool boost::range::equal(const SinglePassRange1&, const SinglePassRange2&) [with SinglePassRange1 = boost::iterator_range; SinglePassRange2 = boost::iterator_range]' src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:646:32: required from 'bool boost::operator==(const boost::iterator_range&, const boost::iterator_range&) [with Iterator1T = const char*; Iterator2T = const char*]' src/third_party/boost-1.70.0/boost/algorithm/string/find_iterator.hpp:333:32: required from 'bool boost::algorithm::split_iterator::equal(const boost::algorithm::split_iterator&) const [with IteratorT = const char*]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:568:26: required from 'static bool boost::iterators::iterator_core_access::equal(const Facade1&, const Facade2&, mpl_::true_) [with Facade1 = boost::algorithm::split_iterator; Facade2 = boost::algorithm::split_iterator; mpl_::true_ = mpl_::bool_]' src/third_party/boost-1.70.0/boost/iterator/iterator_facade.hpp:901:3: required from 'typename boost::iterators::detail::enable_if_interoperable::type>::type boost::iterators::operator!=(const boost::iterators::iterator_facade&, const boost::iterators::iterator_facade&) [with Derived1 = boost::algorithm::split_iterator; V1 = const boost::iterator_range; TC1 = boost::iterators::forward_traversal_tag; Reference1 = const boost::iterator_range&; Difference1 = long int; Derived2 = boost::algorithm::split_iterator; V2 = const boost::iterator_range; TC2 = boost::iterators::forward_traversal_tag; Reference2 = const boost::iterator_range&; Difference2 = long int; typename boost::iterators::detail::enable_if_interoperable::type>::type = bool; typename boost::mpl::apply2::type = bool]' src/mongo/util/procparser.cpp:222:42: required from here src/third_party/boost-1.70.0/boost/concept/usage.hpp:16:48: warning: 'this' pointer is null [-Wnonnull] 16 | ~usage_requirements() { ((Model*)0)->~Model(); } | ~~~~~~~~~~~~~~~~~~~^~ src/third_party/boost-1.70.0/boost/concept/usage.hpp:30:7: note: in a call to non-static member function 'boost::SinglePassRangeConcept::~SinglePassRangeConcept() [with T = const boost::iterator_range]' 30 | ~model() | ^ src/third_party/boost-1.70.0/boost/range/concepts.hpp:284:9: note: in expansion of macro 'BOOST_CONCEPT_USAGE' 284 | BOOST_CONCEPT_USAGE(SinglePassRangeConcept) | ^~~~~~~~~~~~~~~~~~~ g++ -o build/opt/mongo/db/repl/data_replicator_external_state_initial_sync.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/data_replicator_external_state_initial_sync.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 g++ -o build/opt/mongo/util/signal_handlers_synchronous.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/signal_handlers_synchronous.cpp g++ -o build/opt/mongo/scripting/mozjs/jscustomallocator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/jscustomallocator.cpp g++ -o build/opt/mongo/s/query/document_source_update_on_add_shard.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/query/document_source_update_on_add_shard.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/data_replicator_external_state_impl.h:32, from src/mongo/db/repl/data_replicator_external_state_initial_sync.h:32, from src/mongo/db/repl/data_replicator_external_state_initial_sync.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/data_replicator_external_state_impl.h:32, from src/mongo/db/repl/data_replicator_external_state_initial_sync.h:32, from src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/lock_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/lock_info.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/data_replicator_external_state_impl.h:32, from src/mongo/db/repl/data_replicator_external_state_initial_sync.h:32, from src/mongo/db/repl/data_replicator_external_state_initial_sync.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_batcher.h:34, from src/mongo/db/repl/oplog_applier.h:39, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/data_replicator_external_state_impl.h:32, from src/mongo/db/repl/data_replicator_external_state_initial_sync.h:32, from src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/document_source_replace_root_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/pipeline/document_source_replace_root_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/s/query/document_source_update_on_add_shard.h:34, from src/mongo/s/query/document_source_update_on_add_shard.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/s/query/document_source_update_on_add_shard.h:34, from src/mongo/s/query/document_source_update_on_add_shard.cpp:30: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/s/query/document_source_update_on_add_shard.h:34, from src/mongo/s/query/document_source_update_on_add_shard.cpp:30: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/s/query/document_source_update_on_add_shard.h:34, from src/mongo/s/query/document_source_update_on_add_shard.cpp:30: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/lock_info.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/lock_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/lock_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/lock_info.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_replace_root_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_replace_root_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_replace_root_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_replace_root_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/exec/fetch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/fetch.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/fetch.h:34, from src/mongo/db/exec/fetch.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/fetch.h:34, from src/mongo/db/exec/fetch.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/third_party/abseil-cpp-master/abseil-cpp/absl/base/internal/throw_delegate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/abseil-cpp-master/abseil-cpp src/third_party/abseil-cpp-master/abseil-cpp/absl/base/internal/throw_delegate.cc g++ -o build/opt/mongo/db/query/projection_ast_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/projection_ast_util.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/fetch.h:34, from src/mongo/db/exec/fetch.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/logical_session_id.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/logical_session_id.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/fetch.h:34, from src/mongo/db/exec/fetch.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_customization_hooks.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_customization_hooks.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/uhash_us.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uhash_us.cpp g++ -o build/opt/mongo/util/assert_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/assert_util.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection_ast_util.h:32, from src/mongo/db/query/projection_ast_util.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection_ast_util.h:32, from src/mongo/db/query/projection_ast_util.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection_ast_util.h:32, from src/mongo/db/query/projection_ast_util.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection_ast_util.h:32, from src/mongo/db/query/projection_ast_util.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/process_interface/common_process_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/process_interface/common_process_interface.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection_ast_util.h:32, from src/mongo/db/query/projection_ast_util.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/exec/add_fields_projection_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/add_fields_projection_executor.cpp g++ -o build/opt/mongo/db/exec/projection_executor_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/projection_executor_builder.cpp g++ -o build/opt/mongo/db/exec/inclusion_projection_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/inclusion_projection_executor.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/pipeline/process_interface/common_process_interface.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/pipeline/process_interface/common_process_interface.cpp:41: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/pipeline/process_interface/common_process_interface.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/pipeline/process_interface/common_process_interface.cpp:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/projection_executor.h:38, from src/mongo/db/exec/inclusion_projection_executor.h:34, from src/mongo/db/exec/add_fields_projection_executor.h:34, from src/mongo/db/exec/add_fields_projection_executor.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/projection_executor.h:38, from src/mongo/db/exec/projection_executor_builder.h:34, from src/mongo/db/exec/projection_executor_builder.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/inclusion_projection_executor.h:34, from src/mongo/db/exec/add_fields_projection_executor.h:34, from src/mongo/db/exec/add_fields_projection_executor.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/inclusion_projection_executor.h:34, from src/mongo/db/exec/add_fields_projection_executor.h:34, from src/mongo/db/exec/add_fields_projection_executor.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/inclusion_projection_executor.h:34, from src/mongo/db/exec/add_fields_projection_executor.h:34, from src/mongo/db/exec/add_fields_projection_executor.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/projection_executor_builder.h:34, from src/mongo/db/exec/projection_executor_builder.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/projection_executor.h:38, from src/mongo/db/exec/inclusion_projection_executor.h:34, from src/mongo/db/exec/inclusion_projection_executor.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/projection_executor_builder.h:34, from src/mongo/db/exec/projection_executor_builder.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/projection_executor_builder.h:34, from src/mongo/db/exec/projection_executor_builder.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/inclusion_projection_executor.h:34, from src/mongo/db/exec/inclusion_projection_executor.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/inclusion_projection_executor.h:34, from src/mongo/db/exec/inclusion_projection_executor.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/exec/projection_executor.h:40, from src/mongo/db/exec/inclusion_projection_executor.h:34, from src/mongo/db/exec/inclusion_projection_executor.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp ar rcsTD build/opt/mongo/db/commands/libauthentication_commands.a build/opt/mongo/db/commands/authentication_commands.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libauthentication_commands.a g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/core.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/core.cpp g++ -o build/opt/mongo/bson/bsonobj.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/bsonobj.cpp ar rcsTD build/opt/mongo/db/exec/libprojection_executor.a build/opt/mongo/db/exec/add_fields_projection_executor.o build/opt/mongo/db/exec/inclusion_projection_executor.o build/opt/mongo/db/exec/projection_executor_builder.o build/opt/mongo/db/exec/projection_executor_utils.o build/opt/mongo/db/exec/projection_node.o Skipping ranlib for thin archive build/opt/mongo/db/exec/libprojection_executor.a g++ -o build/opt/mongo/db/pipeline/document_source_sample_from_random_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_ceilf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/s_ceilf.cpp g++ -o build/opt/mongo/util/fail_point.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/fail_point.cpp g++ -o build/opt/mongo/logv2/log_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logv2/log_manager.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, 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:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, 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: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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, 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: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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, 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:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/repl_server_parameters_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/repl/repl_server_parameters_gen.cpp g++ -o build/opt/mongo/db/repl/sync_source_resolver.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/sync_source_resolver.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/repl_server_parameters_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/libfail_point.a build/opt/mongo/util/fail_point.o build/opt/mongo/util/fail_point_server_parameter_gen.o Skipping ranlib for thin archive build/opt/mongo/util/libfail_point.a gcc -o build/opt/third_party/wiredtiger/src/block/block_read.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/block/block_read.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/repl_server_parameters_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/accumulator_last.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_last.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/sync_source_resolver.h:37, from src/mongo/db/repl/sync_source_resolver.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/repl_server_parameters_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/sync_source_resolver.h:37, from src/mongo/db/repl/sync_source_resolver.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/repl_server_parameters_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/sync_source_resolver.h:37, from src/mongo/db/repl/sync_source_resolver.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/sync_source_resolver.h:37, from src/mongo/db/repl/sync_source_resolver.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/expression.h:47, from src/mongo/db/pipeline/accumulator.h:43, from src/mongo/db/pipeline/accumulator_last.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/accumulator_add_to_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_add_to_set.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/accumulator_min_max.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_min_max.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/expression.h:47, from src/mongo/db/pipeline/accumulator.h:43, from src/mongo/db/pipeline/accumulator_add_to_set.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/accumulator_js_reduce.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_js_reduce.cpp g++ -o build/opt/mongo/db/pipeline/accumulator_merge_objects.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_merge_objects.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/expression.h:47, from src/mongo/db/pipeline/accumulator.h:43, from src/mongo/db/pipeline/accumulator_min_max.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/expression.h:47, from src/mongo/db/pipeline/accumulator.h:43, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/accumulator_js_reduce.h:35, from src/mongo/db/pipeline/accumulator_js_reduce.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/accumulator.h:43, from src/mongo/db/pipeline/accumulator_min_max.cpp:32: src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionFromAccumulator]': src/mongo/db/pipeline/accumulator_min_max.cpp:44:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(expr); | ^ src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionFromAccumulator]': src/mongo/db/pipeline/accumulator_min_max.cpp:45:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/accumulator_avg.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_avg.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/expression.h:47, from src/mongo/db/pipeline/accumulator.h:43, from src/mongo/db/pipeline/accumulator_merge_objects.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/accumulator.h:43, from src/mongo/db/pipeline/accumulator_merge_objects.cpp:32: src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionFromAccumulator]': src/mongo/db/pipeline/accumulator_merge_objects.cpp:46:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(expr); | ^ src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/expression.h:47, from src/mongo/db/pipeline/accumulator.h:43, from src/mongo/db/pipeline/accumulator_avg.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/btree/bt_ovfl.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_ovfl.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/cursor/cur_backup.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/cursor/cur_backup.c gcc -o build/opt/third_party/wiredtiger/src/reconcile/rec_write.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/reconcile/rec_write.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/pipeline/accumulator.h:43, from src/mongo/db/pipeline/accumulator_avg.cpp:32: src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionFromAccumulator]': src/mongo/db/pipeline/accumulator_avg.cpp:46:1: required from here src/mongo/db/pipeline/expression.h:350:30: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(expr); | ^ src/mongo/db/pipeline/expression.h:350:30: note: remove 'std::move' call gcc -o build/opt/third_party/wiredtiger/src/os_posix/os_once.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_once.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/meta/meta_turtle.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/meta/meta_turtle.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/packing/pack_api.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/packing/pack_api.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/cursor/cur_dump.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/cursor/cur_dump.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/os_posix/os_map.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_map.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/btree/bt_upgrade.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_upgrade.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/btree/bt_walk.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_walk.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/btree/row_key.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/row_key.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/meta/meta_table.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/meta/meta_table.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/schema/schema_util.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/schema/schema_util.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/evict/evict_file.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/evict/evict_file.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/ext/compressors/snappy/snappy_compress.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/ext/compressors/snappy/snappy_compress.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/packing/pack_impl.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/packing/pack_impl.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/conn/conn_sweep.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/conn/conn_sweep.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/support/modify.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/modify.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/conn/conn_open.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/conn/conn_open.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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_js_reduce.o build/opt/mongo/db/pipeline/accumulator_last.o build/opt/mongo/db/pipeline/accumulator_merge_objects.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 Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libaccumulator.a gcc -o build/opt/third_party/wiredtiger/src/conn/api_version.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/conn/api_version.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/lsm/lsm_manager.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/lsm/lsm_manager.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/lsm/lsm_cursor.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/lsm/lsm_cursor.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/os_common/os_abort.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_common/os_abort.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/os_common/filename.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_common/filename.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/session/session_dhandle.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/session/session_dhandle.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/schema/schema_open.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/schema/schema_open.c gcc -o build/opt/third_party/wiredtiger/src/os_posix/os_getenv.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_getenv.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/os_common/os_strtouq.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_common/os_strtouq.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/support/hash_city.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/hash_city.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/block/block_map.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/block/block_map.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/support/hazard.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/hazard.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/block/block_addr.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/block/block_addr.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/cursor/cur_backup_incr.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/cursor/cur_backup_incr.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/os_common/os_errno.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_common/os_errno.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/block/block_compact.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/block/block_compact.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/conn/conn_log.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/conn/conn_log.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/history/hs_verify.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/history/hs_verify.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/os_common/os_fhandle.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_common/os_fhandle.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/os_common/os_fs_inmemory.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_common/os_fs_inmemory.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/conn/conn_stat.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/conn/conn_stat.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/os_posix/os_fs.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_fs.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/cursor/cur_file.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/cursor/cur_file.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/conn/api_strerror.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/conn/api_strerror.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/config/config_collapse.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/config/config_collapse.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/schema/schema_list.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/schema/schema_list.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/txn/txn_rollback_to_stable.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/txn/txn_rollback_to_stable.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/log/log_sys.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/log/log_sys.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/conn/conn_reconfig.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/conn/conn_reconfig.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/block/block_ckpt.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/block/block_ckpt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/btree/bt_debug.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_debug.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/conn/conn_cache.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/conn/conn_cache.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/os_posix/os_sleep.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_sleep.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/os_posix/os_setvbuf.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_setvbuf.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/btree/bt_ret.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_ret.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/btree/bt_curprev.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_curprev.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/cursor/cur_json.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/cursor/cur_json.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/support/global.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/global.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/reconcile/rec_row.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/reconcile/rec_row.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/tiered/tiered_work.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/tiered/tiered_work.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/cursor/cur_index.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/cursor/cur_index.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/cursor/cur_config.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/cursor/cur_config.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/btree/bt_page.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_page.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/block/block_vrfy.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/block/block_vrfy.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/support/generation.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/generation.c gcc -o build/opt/third_party/wiredtiger/src/optrack/optrack.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/optrack/optrack.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/os_posix/os_mtx_cond.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_mtx_cond.c gcc -o build/opt/third_party/wiredtiger/src/cursor/cur_ds.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/cursor/cur_ds.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/reconcile/rec_track.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/reconcile/rec_track.c gcc -o build/opt/third_party/wiredtiger/src/lsm/lsm_merge.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/lsm/lsm_merge.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/conn/conn_tiered.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/conn/conn_tiered.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/log/log_slot.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/log/log_slot.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/btree/bt_handle.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_handle.c gcc -o build/opt/third_party/wiredtiger/src/btree/row_srch.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/row_srch.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/os_posix/os_path.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_path.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/conn/conn_api.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/conn/conn_api.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/evict/evict_page.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/evict/evict_page.c gcc -o build/opt/third_party/wiredtiger/src/txn/txn_ckpt.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/txn/txn_ckpt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/meta/meta_ext.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/meta/meta_ext.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/os_posix/os_dir.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_dir.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/lsm/lsm_meta.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/lsm/lsm_meta.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/support/huffman.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/huffman.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/wiredtiger/src/os_common/os_fstream_stdio.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_BUILTIN_EXTENSION_ZSTD -Isrc/third_party/zstandard-1.4.3/zstd/lib -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_common/os_fstream_stdio.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/index/sort_key_generator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index/sort_key_generator.cpp g++ -o build/opt/third_party/mozjs-60/extract/mozglue/misc/TimeStamp_posix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/mozglue/misc/TimeStamp_posix.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 g++ -o build/opt/mongo/util/periodic_runner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/periodic_runner.cpp Using tempfile /usr/src/tmp/tmptj2lhmrm.lnk for command line: ar rcsTD build/opt/third_party/wiredtiger/libwiredtiger.a build/opt/third_party/wiredtiger/src/block/block_addr.o build/opt/third_party/wiredtiger/src/block/block_ckpt.o build/opt/third_party/wiredtiger/src/block/block_ckpt_scan.o build/opt/third_party/wiredtiger/src/block/block_compact.o build/opt/third_party/wiredtiger/src/block/block_ext.o build/opt/third_party/wiredtiger/src/block/block_map.o build/opt/third_party/wiredtiger/src/block/block_mgr.o build/opt/third_party/wiredtiger/src/block/block_open.o build/opt/third_party/wiredtiger/src/block/block_read.o build/opt/third_party/wiredtiger/src/block/block_session.o build/opt/third_party/wiredtiger/src/block/block_slvg.o build/opt/third_party/wiredtiger/src/block/block_tiered.o build/opt/third_party/wiredtiger/src/block/block_vrfy.o build/opt/third_party/wiredtiger/src/block/block_write.o build/opt/third_party/wiredtiger/src/bloom/bloom.o build/opt/third_party/wiredtiger/src/btree/bt_compact.o build/opt/third_party/wiredtiger/src/btree/bt_curnext.o build/opt/third_party/wiredtiger/src/btree/bt_curprev.o build/opt/third_party/wiredtiger/src/btree/bt_cursor.o build/opt/third_party/wiredtiger/src/btree/bt_debug.o build/opt/third_party/wiredtiger/src/btree/bt_delete.o build/opt/third_party/wiredtiger/src/btree/bt_discard.o build/opt/third_party/wiredtiger/src/btree/bt_handle.o build/opt/third_party/wiredtiger/src/btree/bt_huffman.o build/opt/third_party/wiredtiger/src/btree/bt_import.o build/opt/third_party/wiredtiger/src/btree/bt_io.o build/opt/third_party/wiredtiger/src/btree/bt_misc.o build/opt/third_party/wiredtiger/src/btree/bt_ovfl.o build/opt/third_party/wiredtiger/src/btree/bt_page.o build/opt/third_party/wiredtiger/src/btree/bt_random.o build/opt/third_party/wiredtiger/src/btree/bt_read.o build/opt/third_party/wiredtiger/src/btree/bt_ret.o build/opt/third_party/wiredtiger/src/btree/bt_slvg.o build/opt/third_party/wiredtiger/src/btree/bt_split.o build/opt/third_party/wiredtiger/src/btree/bt_stat.o build/opt/third_party/wiredtiger/src/btree/bt_sync.o build/opt/third_party/wiredtiger/src/btree/bt_upgrade.o build/opt/third_party/wiredtiger/src/btree/bt_vrfy.o build/opt/third_party/wiredtiger/src/btree/bt_vrfy_dsk.o build/opt/third_party/wiredtiger/src/btree/bt_walk.o build/opt/third_party/wiredtiger/src/btree/col_modify.o build/opt/third_party/wiredtiger/src/btree/col_srch.o build/opt/third_party/wiredtiger/src/btree/row_key.o build/opt/third_party/wiredtiger/src/btree/row_modify.o build/opt/third_party/wiredtiger/src/btree/row_srch.o build/opt/third_party/wiredtiger/src/config/config.o build/opt/third_party/wiredtiger/src/config/config_api.o build/opt/third_party/wiredtiger/src/config/config_check.o build/opt/third_party/wiredtiger/src/config/config_collapse.o build/opt/third_party/wiredtiger/src/config/config_def.o build/opt/third_party/wiredtiger/src/config/config_ext.o build/opt/third_party/wiredtiger/src/config/test_config.o build/opt/third_party/wiredtiger/src/conn/api_calc_modify.o build/opt/third_party/wiredtiger/src/conn/api_strerror.o build/opt/third_party/wiredtiger/src/conn/api_version.o build/opt/third_party/wiredtiger/src/conn/conn_api.o build/opt/third_party/wiredtiger/src/conn/conn_cache.o build/opt/third_party/wiredtiger/src/conn/conn_cache_pool.o build/opt/third_party/wiredtiger/src/conn/conn_capacity.o build/opt/third_party/wiredtiger/src/conn/conn_ckpt.o build/opt/third_party/wiredtiger/src/conn/conn_dhandle.o build/opt/third_party/wiredtiger/src/conn/conn_handle.o build/opt/third_party/wiredtiger/src/conn/conn_log.o build/opt/third_party/wiredtiger/src/conn/conn_open.o build/opt/third_party/wiredtiger/src/conn/conn_reconfig.o build/opt/third_party/wiredtiger/src/conn/conn_stat.o build/opt/third_party/wiredtiger/src/conn/conn_sweep.o build/opt/third_party/wiredtiger/src/conn/conn_tiered.o build/opt/third_party/wiredtiger/src/cursor/cur_backup.o build/opt/third_party/wiredtiger/src/cursor/cur_backup_incr.o build/opt/third_party/wiredtiger/src/cursor/cur_bulk.o build/opt/third_party/wiredtiger/src/cursor/cur_config.o build/opt/third_party/wiredtiger/src/cursor/cur_ds.o build/opt/third_party/wiredtiger/src/cursor/cur_dump.o build/opt/third_party/wiredtiger/src/cursor/cur_file.o build/opt/third_party/wiredtiger/src/cursor/cur_hs.o build/opt/third_party/wiredtiger/src/cursor/cur_index.o build/opt/third_party/wiredtiger/src/cursor/cur_join.o build/opt/third_party/wiredtiger/src/cursor/cur_json.o build/opt/third_party/wiredtiger/src/cursor/cur_log.o build/opt/third_party/wiredtiger/src/cursor/cur_metadata.o build/opt/third_party/wiredtiger/src/cursor/cur_stat.o build/opt/third_party/wiredtiger/src/cursor/cur_std.o build/opt/third_party/wiredtiger/src/cursor/cur_table.o build/opt/third_party/wiredtiger/src/evict/evict_file.o build/opt/third_party/wiredtiger/src/evict/evict_lru.o build/opt/third_party/wiredtiger/src/evict/evict_page.o build/opt/third_party/wiredtiger/src/evict/evict_stat.o build/opt/third_party/wiredtiger/src/history/hs_conn.o build/opt/third_party/wiredtiger/src/history/hs_cursor.o build/opt/third_party/wiredtiger/src/history/hs_verify.o build/opt/third_party/wiredtiger/src/history/hs_rec.o build/opt/third_party/wiredtiger/src/log/log.o build/opt/third_party/wiredtiger/src/log/log_auto.o build/opt/third_party/wiredtiger/src/log/log_slot.o build/opt/third_party/wiredtiger/src/log/log_sys.o build/opt/third_party/wiredtiger/src/lsm/lsm_cursor.o build/opt/third_party/wiredtiger/src/lsm/lsm_cursor_bulk.o build/opt/third_party/wiredtiger/src/lsm/lsm_manager.o build/opt/third_party/wiredtiger/src/lsm/lsm_merge.o build/opt/third_party/wiredtiger/src/lsm/lsm_meta.o build/opt/third_party/wiredtiger/src/lsm/lsm_stat.o build/opt/third_party/wiredtiger/src/lsm/lsm_tree.o build/opt/third_party/wiredtiger/src/lsm/lsm_work_unit.o build/opt/third_party/wiredtiger/src/lsm/lsm_worker.o build/opt/third_party/wiredtiger/src/meta/meta_apply.o build/opt/third_party/wiredtiger/src/meta/meta_ckpt.o build/opt/third_party/wiredtiger/src/meta/meta_ext.o build/opt/third_party/wiredtiger/src/meta/meta_table.o build/opt/third_party/wiredtiger/src/meta/meta_track.o build/opt/third_party/wiredtiger/src/meta/meta_turtle.o build/opt/third_party/wiredtiger/src/optrack/optrack.o build/opt/third_party/wiredtiger/src/os_common/filename.o build/opt/third_party/wiredtiger/src/os_common/os_abort.o build/opt/third_party/wiredtiger/src/os_common/os_alloc.o build/opt/third_party/wiredtiger/src/os_common/os_errno.o build/opt/third_party/wiredtiger/src/os_common/os_fhandle.o build/opt/third_party/wiredtiger/src/os_common/os_fs_inmemory.o build/opt/third_party/wiredtiger/src/os_common/os_fstream.o build/opt/third_party/wiredtiger/src/os_common/os_fstream_stdio.o build/opt/third_party/wiredtiger/src/os_common/os_getopt.o build/opt/third_party/wiredtiger/src/os_common/os_strtouq.o build/opt/third_party/wiredtiger/src/os_posix/os_dir.o build/opt/third_party/wiredtiger/src/os_posix/os_dlopen.o build/opt/third_party/wiredtiger/src/os_posix/os_fallocate.o build/opt/third_party/wiredtiger/src/os_posix/os_fs.o build/opt/third_party/wiredtiger/src/os_posix/os_getenv.o build/opt/third_party/wiredtiger/src/os_posix/os_map.o build/opt/third_party/wiredtiger/src/os_posix/os_mtx_cond.o build/opt/third_party/wiredtiger/src/os_posix/os_once.o build/opt/third_party/wiredtiger/src/os_posix/os_pagesize.o build/opt/third_party/wiredtiger/src/os_posix/os_path.o build/opt/third_party/wiredtiger/src/os_posix/os_priv.o build/opt/third_party/wiredtiger/src/os_posix/os_setvbuf.o build/opt/third_party/wiredtiger/src/os_posix/os_sleep.o build/opt/third_party/wiredtiger/src/os_posix/os_snprintf.o build/opt/third_party/wiredtiger/src/os_posix/os_thread.o build/opt/third_party/wiredtiger/src/os_posix/os_time.o build/opt/third_party/wiredtiger/src/os_posix/os_yield.o build/opt/third_party/wiredtiger/src/packing/pack_api.o build/opt/third_party/wiredtiger/src/packing/pack_impl.o build/opt/third_party/wiredtiger/src/packing/pack_stream.o build/opt/third_party/wiredtiger/src/reconcile/rec_child.o build/opt/third_party/wiredtiger/src/reconcile/rec_col.o build/opt/third_party/wiredtiger/src/reconcile/rec_dictionary.o build/opt/third_party/wiredtiger/src/reconcile/rec_row.o build/opt/third_party/wiredtiger/src/reconcile/rec_track.o build/opt/third_party/wiredtiger/src/reconcile/rec_visibility.o build/opt/third_party/wiredtiger/src/reconcile/rec_write.o build/opt/third_party/wiredtiger/src/schema/schema_alter.o build/opt/third_party/wiredtiger/src/schema/schema_create.o build/opt/third_party/wiredtiger/src/schema/schema_drop.o build/opt/third_party/wiredtiger/src/schema/schema_list.o build/opt/third_party/wiredtiger/src/schema/schema_open.o build/opt/third_party/wiredtiger/src/schema/schema_plan.o build/opt/third_party/wiredtiger/src/schema/schema_project.o build/opt/third_party/wiredtiger/src/schema/schema_rename.o build/opt/third_party/wiredtiger/src/schema/schema_stat.o build/opt/third_party/wiredtiger/src/schema/schema_truncate.o build/opt/third_party/wiredtiger/src/schema/schema_util.o build/opt/third_party/wiredtiger/src/schema/schema_worker.o build/opt/third_party/wiredtiger/src/session/session_api.o build/opt/third_party/wiredtiger/src/session/session_compact.o build/opt/third_party/wiredtiger/src/session/session_dhandle.o build/opt/third_party/wiredtiger/src/support/cond_auto.o build/opt/third_party/wiredtiger/src/support/crypto.o build/opt/third_party/wiredtiger/src/support/err.o build/opt/third_party/wiredtiger/src/support/generation.o build/opt/third_party/wiredtiger/src/support/global.o build/opt/third_party/wiredtiger/src/support/hash_city.o build/opt/third_party/wiredtiger/src/support/hash_fnv.o build/opt/third_party/wiredtiger/src/support/hazard.o build/opt/third_party/wiredtiger/src/support/hex.o build/opt/third_party/wiredtiger/src/support/huffman.o build/opt/third_party/wiredtiger/src/support/lock_ext.o build/opt/third_party/wiredtiger/src/support/modify.o build/opt/third_party/wiredtiger/src/support/mtx_rw.o build/opt/third_party/wiredtiger/src/support/pow.o build/opt/third_party/wiredtiger/src/support/rand.o build/opt/third_party/wiredtiger/src/support/scratch.o build/opt/third_party/wiredtiger/src/support/stat.o build/opt/third_party/wiredtiger/src/support/thread_group.o build/opt/third_party/wiredtiger/src/support/timestamp.o build/opt/third_party/wiredtiger/src/support/update_vector.o build/opt/third_party/wiredtiger/src/tiered/tiered_config.o build/opt/third_party/wiredtiger/src/tiered/tiered_handle.o build/opt/third_party/wiredtiger/src/tiered/tiered_opener.o build/opt/third_party/wiredtiger/src/tiered/tiered_work.o build/opt/third_party/wiredtiger/src/txn/txn.o build/opt/third_party/wiredtiger/src/txn/txn_ckpt.o build/opt/third_party/wiredtiger/src/txn/txn_ext.o build/opt/third_party/wiredtiger/src/txn/txn_log.o build/opt/third_party/wiredtiger/src/txn/txn_recover.o build/opt/third_party/wiredtiger/src/txn/txn_rollback_to_stable.o build/opt/third_party/wiredtiger/src/txn/txn_timestamp.o build/opt/third_party/wiredtiger/ext/compressors/zlib/zlib_compress.o build/opt/third_party/wiredtiger/ext/compressors/snappy/snappy_compress.o build/opt/third_party/wiredtiger/ext/compressors/zstd/zstd_compress.o ar @/usr/src/tmp/tmptj2lhmrm.lnk Skipping ranlib for thin archive build/opt/third_party/wiredtiger/libwiredtiger.a g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/ruleiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ruleiter.cpp g++ -o build/opt/mongo/db/s/transaction_coordinator_worker_curop_repository.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/transaction_coordinator_worker_curop_repository.cpp g++ -o build/opt/mongo/db/s/sharding_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/sharding_state.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/document_path_support.h:38, from src/mongo/db/query/sort_pattern.h:34, from src/mongo/db/index/sort_key_generator.h:37, from src/mongo/db/index/sort_key_generator.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/transaction_coordinator_worker_curop_repository.h:31, from src/mongo/db/s/transaction_coordinator_worker_curop_repository.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/transaction_coordinator_worker_curop_repository.h:31, from src/mongo/db/s/transaction_coordinator_worker_curop_repository.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/transaction_coordinator_worker_curop_repository.h:31, from src/mongo/db/s/transaction_coordinator_worker_curop_repository.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/s/transaction_coordinator_worker_curop_repository.h:31, from src/mongo/db/s/transaction_coordinator_worker_curop_repository.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call gcc -o build/opt/third_party/timelib-2021.06/unixtime2tm.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/timelib-2021.06 src/third_party/timelib-2021.06/unixtime2tm.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/pipeline/document_source_exchange.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_exchange.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 build/opt/mongo/db/index/wildcard_key_generator.o Skipping ranlib for thin archive build/opt/mongo/db/index/libkey_generator.a g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp In file included from src/third_party/mozjs-60/extract/js/src/vm/UnboxedObject-inl.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:24, from src/third_party/mozjs-60/extract/js/src/jit/VMFunctions.cpp:25, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:47: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineJIT.h:13, from src/third_party/mozjs-60/extract/js/src/jit/BaselineIC.h:15, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:22, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/Value.h:24, from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/jit/VMFunctions.cpp:365:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/jit/VMFunctions.cpp:399:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h: In instantiation of 'T* js::jit::JitAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = JS::Value; Value = unsigned int; HashPolicy = js::jit::LIRGraph::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/jit/LIR.h:1893:37: required from here src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:101:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 101 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/Value.h:24, from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 5]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 5]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/jit/VMFunctions.cpp:951:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Sink.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/pipeline/document_source_exchange.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/pipeline/document_source_exchange.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/pipeline/document_source_exchange.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/pipeline/document_source_exchange.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 build/opt/mongo/db/s/transaction_coordinator_curop.o build/opt/mongo/db/s/transaction_coordinator_factory.o build/opt/mongo/db/s/transaction_coordinator_worker_curop_repository.o Skipping ranlib for thin archive build/opt/mongo/db/s/libsharding_api_d.a g++ -o build/opt/mongo/s/cluster_last_error_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/cluster_last_error_info.cpp ar rcsTD build/opt/third_party/abseil-cpp-master/libabsl_throw_delegate.a build/opt/third_party/abseil-cpp-master/abseil-cpp/absl/base/internal/throw_delegate.o Skipping ranlib for thin archive build/opt/third_party/abseil-cpp-master/libabsl_throw_delegate.a In file included from src/third_party/mozjs-60/extract/js/src/vm/Debugger.cpp:49, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Debugger-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:11: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ g++ -o build/opt/mongo/db/index/index_build_interceptor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index/index_build_interceptor.cpp In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/Conversions.h:20, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.h:17, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Debugger-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:11: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/Conversions.h:20, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.h:17, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Debugger-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:11: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/Conversions.h:20, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.h:17, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Debugger-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/Conversions.h:20, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.h:17, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Debugger-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/Conversions.h:20, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.h:17, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Debugger-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/Conversions.h:20, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.h:17, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.h:20, from src/third_party/mozjs-60/extract/js/src/vm/Debugger-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:11: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/Conversions.h:20, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.h:17, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.h:20, from src/third_party/mozjs-60/extract/js/src/vm/Debugger-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:11: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/Conversions.h:20, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.h:17, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.h:20, from src/third_party/mozjs-60/extract/js/src/vm/Debugger-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/Conversions.h:20, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.h:17, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/Conversions.h:23, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.h:17, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/Conversions.h:20, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.h:17, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-60/extract/js/src/vm/Stack-inl.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Debugger-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Debugger.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:11: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/Conversions.h:22, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.h:17, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap >::MapHashPolicy; AllocPolicy = js::TempAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = js::frontend::UsedNameTracker::UsedNameInfo; HashPolicy = js::DefaultHasher; AllocPolicy = js::TempAllocPolicy]' src/third_party/mozjs-60/extract/js/src/frontend/ParseContext.h:167:19: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap >::MapHashPolicy, js::TempAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap >::MapHashPolicy, js::TempAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = JS::Zone* const; HashPolicy = js::HashSet, js::SystemAllocPolicy>::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = JS::Zone*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Debugger.cpp:4135:24: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::MissingEnvironmentKey, js::ZoneAllocPolicy>::MapHashPolicy; AllocPolicy = js::ZoneAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::MissingEnvironmentKey; Value = js::ReadBarriered; HashPolicy = js::MissingEnvironmentKey; AllocPolicy = js::ZoneAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/EnvironmentObject.cpp:2839:32: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::MissingEnvironmentKey, js::ZoneAllocPolicy>::MapHashPolicy, js::ZoneAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::MissingEnvironmentKey, js::ZoneAllocPolicy>::MapHashPolicy, js::ZoneAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry, js::LiveEnvironmentVal>; HashPolicy = js::HashMap, js::LiveEnvironmentVal, js::MovableCellHasher >, js::ZoneAllocPolicy>::MapHashPolicy; AllocPolicy = js::ZoneAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::ReadBarriered; Value = js::LiveEnvironmentVal; HashPolicy = js::MovableCellHasher >; AllocPolicy = js::ZoneAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/EnvironmentObject.cpp:2840:29: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::LiveEnvironmentVal>, js::HashMap, js::LiveEnvironmentVal, js::MovableCellHasher >, js::ZoneAllocPolicy>::MapHashPolicy, js::ZoneAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry, js::LiveEnvironmentVal> >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::LiveEnvironmentVal>, js::HashMap, js::LiveEnvironmentVal, js::MovableCellHasher >, js::ZoneAllocPolicy>::MapHashPolicy, js::ZoneAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry, js::LiveEnvironmentVal> >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/Conversions.h:20, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.h:17, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/Conversions.h:23, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.h:17, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/Conversions.h:20, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.h:17, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/Conversions.h:23, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.h:17, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/Conversions.h:20, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.h:17, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/Conversions.h:23, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.h:17, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/Conversions.h:22, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.h:17, from src/third_party/mozjs-60/extract/js/src/vm/DateTime.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:74:25: required from 'bool js::detail::InlineTable::switchToTable() [with InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:298:22: required from 'bool js::detail::InlineTable::add(js::detail::InlineTable::AddPtr&, KeyInput&&, Args&& ...) [with KeyInput = JSAtom*&; Args = {js::frontend::DeclaredNameInfo}; InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:535:25: required from 'bool js::InlineMap::add(js::InlineMap::AddPtr&, KeyInput&&, ValueInput&&) [with KeyInput = JSAtom*&; ValueInput = js::frontend::DeclaredNameInfo; Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; long unsigned int InlineEntries = 24; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; js::InlineMap::AddPtr = js::detail::InlineTable, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry, js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>, js::DefaultHasher, js::SystemAllocPolicy, 24>::AddPtr]' src/third_party/mozjs-60/extract/js/src/frontend/ParseContext.h:311:53: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ 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 g++ -o build/opt/mongo/util/options_parser/environment.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/options_parser/environment.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/index/index_build_interceptor.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call gcc -o build/opt/third_party/timelib-2021.06/parse_posix.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/timelib-2021.06 src/third_party/timelib-2021.06/parse_posix.c src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv.c In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/index/index_build_interceptor.cpp:40: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/storage/encryption_hooks.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/encryption_hooks.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/index/index_build_interceptor.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/index/index_build_interceptor.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/util/options_parser/option_section.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/options_parser/option_section.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 g++ -o build/opt/mongo/util/options_parser/startup_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/options_parser/startup_options.cpp g++ -o build/opt/mongo/util/options_parser/option_description.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/options_parser/option_description.cpp g++ -o build/opt/mongo/util/net/ssl_options_server.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/ssl_options_server.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/run_aggregate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/run_aggregate.cpp ar rcsTD build/opt/mongo/util/options_parser/liboptions_parser.a build/opt/mongo/util/options_parser/constraints.o build/opt/mongo/util/options_parser/environment.o build/opt/mongo/util/options_parser/option_description.o build/opt/mongo/util/options_parser/option_section.o build/opt/mongo/util/options_parser/options_parser.o build/opt/mongo/util/options_parser/startup_option_init.o build/opt/mongo/util/options_parser/startup_options.o build/opt/mongo/util/options_parser/value.o Skipping ranlib for thin archive build/opt/mongo/util/options_parser/liboptions_parser.a 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 g++ -o build/opt/third_party/mozjs-60/extract/mozglue/misc/StackWalk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/mozglue/misc/StackWalk.cpp g++ -o build/opt/mongo/s/catalog/dist_lock_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/catalog/dist_lock_catalog.cpp g++ -o build/opt/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp ar rcsTD build/opt/mongo/db/index/libindex_build_interceptor.a build/opt/mongo/db/index/index_build_interceptor.o build/opt/mongo/db/index/index_build_interceptor_gen.o Skipping ranlib for thin archive build/opt/mongo/db/index/libindex_build_interceptor.a g++ -o build/opt/mongo/db/command_can_run_here.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/command_can_run_here.cpp In file included from src/mongo/db/commands/run_aggregate.h:37, from src/mongo/db/commands/run_aggregate.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/watchdog/libwatchdog_mongod.a build/opt/mongo/watchdog/watchdog_mongod.o build/opt/mongo/watchdog/watchdog_mongod_gen.o Skipping ranlib for thin archive build/opt/mongo/watchdog/libwatchdog_mongod.a g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database.h:38, from src/mongo/db/commands/run_aggregate.cpp:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:34, from src/mongo/db/command_can_run_here.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:34, from src/mongo/db/command_can_run_here.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:34, from src/mongo/db/command_can_run_here.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:34, from src/mongo/db/command_can_run_here.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsexn.h:14, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jsexn.h:17, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsexn.h:14, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jsexn.h:17, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsexn.h:14, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jsexn.h:17, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsexn.h:14, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jsexn.h:17, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsexn.h:14, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jsexn.h:17, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsexn.h:14, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jsexn.h:17, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsexn.h:14, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jsexn.h:17, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsexn.h:14, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jsexn.h:17, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsexn.h:14, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsexn.h:14, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsexn.h:14, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:58: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsexn.h:14, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsexn.h:14, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsexn.h:14, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsexn.h:14, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsexn.h:14, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsexn.h:14, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsexn.h:14, from src/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.cpp:31: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:35, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jsnum.h:17, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsnum.h:13, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jsnum.h:17, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsnum.h:13, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jsnum.h:17, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsnum.h:13, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsnum.h:17, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsnum.h:13, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/StringBuffer.h:14, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:29, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsnum.h:13, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/StringBuffer.h:14, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:29, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsnum.h:13, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/StringBuffer.h:14, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:29, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsnum.h:13, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/StringBuffer.h:14, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:29, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsnum.h:13, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/util/StringBuffer.h:14, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:29, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsnum.h:13, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsnum.h:13, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsnum.h:13, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:22, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:35, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsnum.h:13, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsnum.h:13, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsnum.h:13, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsnum.h:13, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsnum.h:13, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsnum.h:13, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsnum.h:13, from src/third_party/mozjs-60/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ g++ -o build/opt/mongo/db/service_liaison.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/service_liaison.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call 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 g++ -o build/opt/mongo/db/repl/image_collection_entry_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/repl/image_collection_entry_gen.cpp 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 g++ -o build/opt/mongo/client/hedging_mode_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/client/hedging_mode_gen.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/trivial.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/trivial.cpp g++ -o build/opt/mongo/client/read_preference_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/client/read_preference_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/image_collection_entry_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/image_collection_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/client/hedging_mode_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/image_collection_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/image_collection_entry_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/keys_collection_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/keys_collection_cache.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/hedging_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/hedging_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/hedging_mode_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/client/read_preference_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/read_preference_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/read_preference_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/read_preference_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/biggie/biggie_kv_engine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/biggie/biggie_kv_engine.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libimage_collection_entry.a build/opt/mongo/db/repl/image_collection_entry_gen.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libimage_collection_entry.a g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp g++ -o build/opt/mongo/db/pipeline/pipeline_d.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/pipeline_d.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/uidna.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uidna.cpp g++ -o build/opt/mongo/scripting/mozjs/maxkey.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/maxkey.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/normalizer2impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/normalizer2impl.cpp In file included from src/mongo/db/pipeline/pipeline_d.h:37, from src/mongo/db/pipeline/pipeline_d.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_hypot.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/e_hypot.cpp g++ -o build/opt/mongo/db/free_mon/free_mon_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_status.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/pipeline/document_source_cursor.h:34, from src/mongo/db/pipeline/pipeline_d.h:39, from src/mongo/db/pipeline/pipeline_d.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/pipeline/document_source_cursor.h:34, from src/mongo/db/pipeline/pipeline_d.h:39, from src/mongo/db/pipeline/pipeline_d.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/pipeline/document_source_cursor.h:34, from src/mongo/db/pipeline/pipeline_d.h:39, from src/mongo/db/pipeline/pipeline_d.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/free_mon/free_mon_status.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/ArrayBufferObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/ArrayBufferObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/ArrayBufferObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/ArrayBufferObject.h:15, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/ArrayBufferObject.h:15, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/ArrayBufferObject.h:15, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/free_mon/free_mon_status.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:22, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/free_mon/free_mon_status.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/free_mon/free_mon_status.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/liberror_labels.a build/opt/mongo/db/error_labels.o Skipping ranlib for thin archive build/opt/mongo/db/liberror_labels.a g++ -o build/opt/mongo/logger/logger.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logger/logger.cpp In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodCopy(T*, const T*, size_t) [with T = js::uint8_clamped; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:218:25: required from 'static void js::UnsharedOps::podCopy(SharedMem, SharedMem, size_t) [with T = js::uint8_clamped; size_t = long unsigned int]' src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:262:25: required from 'static bool js::ElementSpecific::setFromTypedArray(JS::Handle, JS::Handle, uint32_t) [with T = js::uint8_clamped; Ops = js::UnsharedOps; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:1477:62: required from 'bool SetFromTypedArray(JS::Handle, JS::Handle, uint32_t) [with T = js::uint8_clamped; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:1577:1: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:110:11: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct js::uint8_clamped' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 110 | memcpy(aDst, aSrc, aNElem * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/ArrayBufferObject.h:513:8: note: 'struct js::uint8_clamped' declared here 513 | struct uint8_clamped { | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodMove(T*, const T*, size_t) [with T = js::uint8_clamped; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:223:25: required from 'static void js::UnsharedOps::podMove(SharedMem, SharedMem, size_t) [with T = js::uint8_clamped; size_t = long unsigned int]' src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:474:25: required from 'static bool js::ElementSpecific::setFromOverlappingTypedArray(JS::Handle, JS::Handle, uint32_t) [with T = js::uint8_clamped; Ops = js::UnsharedOps; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:256:48: required from 'static bool js::ElementSpecific::setFromTypedArray(JS::Handle, JS::Handle, uint32_t) [with T = js::uint8_clamped; Ops = js::UnsharedOps; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:1477:62: required from 'bool SetFromTypedArray(JS::Handle, JS::Handle, uint32_t) [with T = js::uint8_clamped; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:1577:1: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:157:10: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'struct js::uint8_clamped' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 157 | memmove(aDst, aSrc, aNElem * sizeof(T)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TypedArrayObject.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/ArrayBufferObject.h:513:8: note: 'struct js::uint8_clamped' declared here 513 | struct uint8_clamped { | ^~~~~~~~~~~~~ g++ -o build/opt/mongo/db/session_killer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/session_killer.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call 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/db/catalog/libindex_build_oplog_entry.a build/opt/mongo/db/catalog/index_build_oplog_entry.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libindex_build_oplog_entry.a 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 g++ -o build/opt/mongo/db/pipeline/document_source_union_with.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_union_with.cpp 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_mongod_gen.o build/opt/mongo/db/free_mon/free_mon_options.o build/opt/mongo/db/free_mon/free_mon_options_gen.o build/opt/mongo/db/free_mon/free_mon_status.o Skipping ranlib for thin archive build/opt/mongo/db/free_mon/libfree_mon_mongod.a gcc -o build/opt/third_party/icu4c-57.1/source/common/icudataver.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/icudataver.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/scripting/mozjs/numberdecimal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/numberdecimal.cpp ar rcsTD build/opt/mongo/db/commands/libset_index_commit_quorum_idl.a build/opt/mongo/db/commands/set_index_commit_quorum_gen.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libset_index_commit_quorum_idl.a g++ -o build/opt/mongo/db/auth/sasl_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/sasl_commands.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_documents.h:32, from src/mongo/db/pipeline/document_source_union_with.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call Generating build/opt/mongo/db/auth/enable_localhost_auth_bypass_parameter_gen.cpp g++ -o build/opt/mongo/db/auth/enable_localhost_auth_bypass_parameter_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/auth/enable_localhost_auth_bypass_parameter_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_documents.h:32, from src/mongo/db/pipeline/document_source_union_with.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_documents.h:32, from src/mongo/db/pipeline/document_source_union_with.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_single_document_transformation.h:34, from src/mongo/db/pipeline/document_source_documents.h:32, from src/mongo/db/pipeline/document_source_union_with.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/auth/authz_session_external_state_server_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/authz_session_external_state_server_common.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/authentication_session.h:34, from src/mongo/db/auth/sasl_commands.cpp:45: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/enable_localhost_auth_bypass_parameter_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/authentication_session.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/authentication_session.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/authentication_session.h:34, from src/mongo/db/auth/sasl_commands.cpp:45: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/enable_localhost_auth_bypass_parameter_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/enable_localhost_auth_bypass_parameter_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/enable_localhost_auth_bypass_parameter_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/auth/sasl_commands.cpp: In function 'mongo::StatusWith > mongo::{anonymous}::doSaslStart(mongo::OperationContext*, const string&, const mongo::BSONObj&, mongo::BSONObjBuilder*, std::string*, bool)': src/mongo/db/auth/sasl_commands.cpp:304:21: warning: redundant move in return statement [-Wredundant-move] 304 | return std::move(session); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/auth/sasl_commands.cpp:304:21: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/util/net/hostandport_gen.cpp g++ -o build/opt/mongo/util/net/hostandport_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/util/net/hostandport_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/authentication_session.h:34, 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::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/util/net/hostname_canonicalization.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/hostname_canonicalization.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/hostandport_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call g++ -o build/opt/mongo/util/net/sockaddr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/sockaddr.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:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/auth/libauthservercommon.a build/opt/mongo/db/auth/authz_session_external_state_server_common.o build/opt/mongo/db/auth/sasl_commands.o build/opt/mongo/db/auth/enable_localhost_auth_bypass_parameter_gen.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauthservercommon.a g++ -o build/opt/mongo/util/net/cidr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/cidr.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 g++ -o build/opt/mongo/db/transaction_history_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/transaction_history_iterator.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 g++ -o build/opt/mongo/util/stacktrace_threads.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/stacktrace_threads.cpp g++ -o build/opt/mongo/db/storage/storage_engine_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/storage_engine_init.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/transaction_history_iterator.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614: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 g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/once_block.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/once_block.cpp g++ -o build/opt/mongo/base/global_initializer_registerer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/global_initializer_registerer.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:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/transaction_history_iterator.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/transaction_history_iterator.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/transaction_history_iterator.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/chunk_writes_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/chunk_writes_tracker.cpp g++ -o build/opt/mongo/db/stats/read_concern_stats_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/stats/read_concern_stats_gen.cpp ar rcsTD build/opt/mongo/s/libchunk_writes_tracker.a build/opt/mongo/s/chunk_writes_tracker.o Skipping ranlib for thin archive build/opt/mongo/s/libchunk_writes_tracker.a 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 g++ -o build/opt/mongo/db/read_concern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/read_concern.cpp g++ -o build/opt/mongo/db/pipeline/document_source_lookup_change_post_image.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_lookup_change_post_image.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/stats/read_concern_stats_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_lookup_change_post_image.h:32, from src/mongo/db/pipeline/document_source_lookup_change_post_image.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_lookup_change_post_image.h:32, from src/mongo/db/pipeline/document_source_lookup_change_post_image.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/database_cloner_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/repl/database_cloner_gen.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_lookup_change_post_image.h:32, from src/mongo/db/pipeline/document_source_lookup_change_post_image.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_lookup_change_post_image.h:32, from src/mongo/db/pipeline/document_source_lookup_change_post_image.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/base_cloner.h:39, from src/mongo/db/repl/database_cloner.h:34, from build/opt/mongo/db/repl/database_cloner_gen.h:23, from build/opt/mongo/db/repl/database_cloner_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/views/view.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/views/view.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:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/base_cloner.h:39, from src/mongo/db/repl/database_cloner.h:34, from build/opt/mongo/db/repl/database_cloner_gen.h:23, from build/opt/mongo/db/repl/database_cloner_gen.cpp:9: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/base_cloner.h:39, from src/mongo/db/repl/database_cloner.h:34, from build/opt/mongo/db/repl/database_cloner_gen.h:23, from build/opt/mongo/db/repl/database_cloner_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/base_cloner.h:39, from src/mongo/db/repl/database_cloner.h:34, from build/opt/mongo/db/repl/database_cloner_gen.h:23, from build/opt/mongo/db/repl/database_cloner_gen.cpp:9: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/client/sasl_client_authenticate_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/sasl_client_authenticate_impl.cpp g++ -o build/opt/mongo/client/native_sasl_client_session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/native_sasl_client_session.cpp g++ -o build/opt/mongo/client/sasl_client_authenticate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/sasl_client_authenticate.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/client/native_sasl_client_session.cpp:44: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/client/native_sasl_client_session.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/client/native_sasl_client_session.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/client/native_sasl_client_session.cpp:44: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/client/sasl_client_conversation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/sasl_client_conversation.cpp g++ -o build/opt/mongo/client/sasl_aws_client_conversation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/sasl_aws_client_conversation.cpp g++ -o build/opt/mongo/client/sasl_client_session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/sasl_client_session.cpp g++ -o build/opt/mongo/client/sasl_scram_client_conversation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/sasl_scram_client_conversation.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/client/sasl_sspi.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/sasl_sspi.cpp Generating build/opt/mongo/client/sasl_sspi_options_gen.cpp g++ -o build/opt/mongo/client/sasl_sspi_options_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/client/sasl_sspi_options_gen.cpp g++ -o build/opt/mongo/client/sasl_plain_client_conversation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/sasl_plain_client_conversation.cpp In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:16, from src/mongo/client/sasl_scram_client_conversation.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::constraint::failed() [with Model = boost::algorithm::FinderConcept, __gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:99:13: required from 'void boost::algorithm::find_format_all(SequenceT&, FinderT, FormatterT) [with SequenceT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::first_finderF; FormatterT = boost::algorithm::detail::const_formatF >]' src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:652:48: required from 'void boost::algorithm::replace_all(SequenceT&, const Range1T&, const Range2T&) [with SequenceT = std::__cxx11::basic_string; Range1T = char [2]; Range2T = char [4]]' src/mongo/client/sasl_scram_client_conversation.cpp:71:23: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:47:52: warning: 'this' pointer is null [-Wnonnull] 47 | static void failed() { ((Model*)0)->constraints(); } | ~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:22, from src/mongo/client/sasl_scram_client_conversation.cpp:34: src/third_party/boost-1.70.0/boost/algorithm/string/concept.hpp:40:18: note: in a call to non-static member function 'void boost::algorithm::FinderConcept::constraints() [with FinderT = boost::algorithm::detail::first_finderF; IteratorT = __gnu_cxx::__normal_iterator >]' 40 | void constraints() | ^~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:16, from src/mongo/client/sasl_scram_client_conversation.cpp:34: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::constraint::failed() [with Model = boost::algorithm::FormatterConcept >, boost::algorithm::detail::first_finderF, __gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:104:13: required from 'void boost::algorithm::find_format_all(SequenceT&, FinderT, FormatterT) [with SequenceT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::first_finderF; FormatterT = boost::algorithm::detail::const_formatF >]' src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:652:48: required from 'void boost::algorithm::replace_all(SequenceT&, const Range1T&, const Range2T&) [with SequenceT = std::__cxx11::basic_string; Range1T = char [2]; Range2T = char [4]]' src/mongo/client/sasl_scram_client_conversation.cpp:71:23: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:47:52: warning: 'this' pointer is null [-Wnonnull] 47 | static void failed() { ((Model*)0)->constraints(); } | ~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:22, from src/mongo/client/sasl_scram_client_conversation.cpp:34: src/third_party/boost-1.70.0/boost/algorithm/string/concept.hpp:65:18: note: in a call to non-static member function 'void boost::algorithm::FormatterConcept::constraints() [with FormatterT = boost::algorithm::detail::const_formatF >; FinderT = boost::algorithm::detail::first_finderF; IteratorT = __gnu_cxx::__normal_iterator >]' 65 | void constraints() | ^~~~~~~~~~~ g++ -o build/opt/mongo/crypto/sha_block_openssl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/crypto/sha_block_openssl.cpp g++ -o build/opt/mongo/util/processinfo.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/processinfo.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/client/sasl_sspi_options_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/util/processinfo_linux.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/processinfo_linux.cpp g++ -o build/opt/mongo/db/exec/document_value/value.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/document_value/value.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/sasl_sspi_options_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/sasl_sspi_options_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/client/sasl_sspi_options_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/document_source_out.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_out.cpp ar rcsTD build/opt/mongo/util/libprocessinfo.a build/opt/mongo/util/processinfo.o build/opt/mongo/util/processinfo_linux.o Skipping ranlib for thin archive build/opt/mongo/util/libprocessinfo.a g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbistbl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/rbbistbl.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/locdspnm.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/locdspnm.cpp gcc -o build/opt/third_party/icu4c-57.1/source/common/utf_impl.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/utf_impl.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/free_mon/free_mon_controller.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_controller.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/pipeline/document_source_writer.h:36, from src/mongo/db/pipeline/document_source_out.h:32, from src/mongo/db/pipeline/document_source_out.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/pipeline/document_source_writer.h:36, from src/mongo/db/pipeline/document_source_out.h:32, from src/mongo/db/pipeline/document_source_out.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/ucnvmbcs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnvmbcs.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/cstr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/cstr.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/pipeline/document_source_writer.h:36, from src/mongo/db/pipeline/document_source_out.h:32, from src/mongo/db/pipeline/document_source_out.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/pipeline/document_source_writer.h:36, from src/mongo/db/pipeline/document_source_out.h:32, from src/mongo/db/pipeline/document_source_out.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/index/s2_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index/s2_common.cpp 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 build/opt/mongo/client/sasl_aws_client_conversation.o build/opt/mongo/client/sasl_aws_client_options_gen.o build/opt/mongo/client/cyrus_sasl_client_session.o build/opt/mongo/client/sasl_sspi.o build/opt/mongo/client/sasl_sspi_options.o build/opt/mongo/client/sasl_sspi_options_gen.o Skipping ranlib for thin archive build/opt/mongo/client/libsasl_client.a g++ -o build/opt/mongo/db/catalog/health_log.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/health_log.cpp g++ -o build/opt/mongo/util/icu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/icu.cpp g++ -o build/opt/mongo/db/query/projection_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/projection_parser.cpp g++ -o build/opt/mongo/bson/simple_bsonobj_comparator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/simple_bsonobj_comparator.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/concurrency/deferred_writer.h:32, from src/mongo/db/catalog/health_log.h:32, from src/mongo/db/catalog/health_log.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/concurrency/deferred_writer.h:32, from src/mongo/db/catalog/health_log.h:32, from src/mongo/db/catalog/health_log.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/client/remote_command_targeter_rs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/remote_command_targeter_rs.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/concurrency/deferred_writer.h:32, from src/mongo/db/catalog/health_log.h:32, from src/mongo/db/catalog/health_log.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/concurrency/deferred_writer.h:32, from src/mongo/db/catalog/health_log.h:32, from src/mongo/db/catalog/health_log.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/projection_parser.h:32, from src/mongo/db/query/projection_parser.cpp:30: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/projection_parser.h:32, from src/mongo/db/query/projection_parser.cpp:30: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/projection_parser.h:32, from src/mongo/db/query/projection_parser.cpp:30: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/projection_parser.h:32, from src/mongo/db/query/projection_parser.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/catalog_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/catalog_cache.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/projection_parser.h:32, from src/mongo/db/query/projection_parser.cpp:30: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/brkeng.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/brkeng.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/uprops.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uprops.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libindex_names.a build/opt/mongo/db/index_names.o src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/libindex_names.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:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/client/rs_local_client.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/client/rs_local_client.cpp ar rcsTD build/opt/mongo/db/query/libprojection_ast.a build/opt/mongo/db/query/projection.o build/opt/mongo/db/query/projection_ast_util.o build/opt/mongo/db/query/projection_parser.o Skipping ranlib for thin archive build/opt/mongo/db/query/libprojection_ast.a gcc -o build/opt/third_party/icu4c-57.1/source/common/uenum.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uenum.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/pipeline/semantic_analysis.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/semantic_analysis.cpp g++ -o build/opt/mongo/db/auth/sasl_mechanism_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/sasl_mechanism_registry.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/s/client/rs_local_client.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/s/client/rs_local_client.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/s/client/rs_local_client.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/s/client/rs_local_client.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/semantic_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/semantic_analysis.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/db/pipeline/semantic_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/db/pipeline/semantic_analysis.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/semantic_analysis.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/rollback_source_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/rollback_source_impl.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_registry.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_registry.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_registry.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_registry.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/semantic_analysis.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call 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 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 g++ -o build/opt/mongo/db/exec/document_value/value_comparator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/document_value/value_comparator.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/s/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/repl/libsplit_horizon.a build/opt/mongo/db/repl/split_horizon.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libsplit_horizon.a g++ -o build/opt/mongo/scripting/mozjs/timestamp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/timestamp.cpp g++ -o build/opt/mongo/scripting/mozjs/PosixNSPR.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/PosixNSPR.cpp g++ -o build/opt/mongo/scripting/mozjs/bson.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/bson.cpp g++ -o build/opt/mongo/scripting/mozjs/numberint.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/numberint.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 g++ -o build/opt/mongo/scripting/mozjs/implscope.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/implscope.cpp g++ -o build/opt/mongo/scripting/mozjs/scripting_util_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/scripting/mozjs/scripting_util_gen.cpp g++ -o build/opt/mongo/scripting/mozjs/numberlong.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/numberlong.cpp g++ -o build/opt/mongo/scripting/mozjs/dbcollection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/dbcollection.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/scripting/mozjs/scripting_util_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/scripting/mozjs/scripting_util_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/scripting/mozjs/scripting_util_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/scripting/mozjs/scripting_util_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/scripting/mozjs/session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/session.cpp g++ -o build/opt/mongo/scripting/mozjs/mongohelpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/mongohelpers.cpp g++ -o build/opt/mongo/scripting/mozjs/object.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/object.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/scripting/mozjs/regexp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/regexp.cpp g++ -o build/opt/mongo/scripting/mozjs/base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/base.cpp g++ -o build/opt/mongo/scripting/mozjs/valuereader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/valuereader.cpp g++ -o build/opt/mongo/scripting/mozjs/mongo.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/mongo.cpp g++ -o build/opt/mongo/scripting/mozjs/code.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/code.cpp In file included from src/third_party/mozjs-60/include/jspubtd.h:17, from src/third_party/mozjs-60/include/jsapi.h:26, from src/mongo/scripting/mozjs/valuereader.h:32, from src/mongo/scripting/mozjs/valuereader.cpp:34: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 1]': src/third_party/mozjs-60/include/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 1]' src/mongo/scripting/mozjs/valuereader.cpp:62:52: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/jsapi.h:29, from src/mongo/scripting/mozjs/valuereader.h:32, from src/mongo/scripting/mozjs/valuereader.cpp:34: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/include/jspubtd.h:17, from src/third_party/mozjs-60/include/jsapi.h:26, from src/mongo/scripting/mozjs/valuereader.h:32, from src/mongo/scripting/mozjs/valuereader.cpp:34: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/include/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/mongo/scripting/mozjs/valuereader.cpp:73:52: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/jsapi.h:29, from src/mongo/scripting/mozjs/valuereader.h:32, from src/mongo/scripting/mozjs/valuereader.cpp:34: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ g++ -o build/opt/mongo/scripting/mozjs/valuewriter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/mozjs/valuewriter.cpp g++ -o build/opt/mongo/db/update/pop_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/pop_node.cpp g++ -o build/opt/mongo/util/system_tick_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/system_tick_source.cpp 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 g++ -o build/opt/mongo/db/views/view_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/views/view_catalog.cpp ar rcsTD build/opt/mongo/client/libread_preference.a build/opt/mongo/client/read_preference.o build/opt/mongo/client/hedging_mode_gen.o build/opt/mongo/client/read_preference_gen.o Skipping ranlib for thin archive build/opt/mongo/client/libread_preference.a g++ -o build/opt/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/update/update_leaf_node.h:32, from src/mongo/db/update/modifier_node.h:39, from src/mongo/db/update/pop_node.h:35, from src/mongo/db/update/pop_node.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/views/resolved_view.h:37, from src/mongo/db/views/view_catalog.h:44, from src/mongo/db/views/view_catalog.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/scripting/libscripting.a build/opt/mongo/scripting/mozjs/base.o build/opt/mongo/scripting/mozjs/bindata.o build/opt/mongo/scripting/mozjs/bson.o build/opt/mongo/scripting/mozjs/code.o build/opt/mongo/scripting/mozjs/countdownlatch.o build/opt/mongo/scripting/mozjs/cursor.o build/opt/mongo/scripting/mozjs/cursor_handle.o build/opt/mongo/scripting/mozjs/db.o build/opt/mongo/scripting/mozjs/dbcollection.o build/opt/mongo/scripting/mozjs/dbpointer.o build/opt/mongo/scripting/mozjs/dbquery.o build/opt/mongo/scripting/mozjs/dbref.o build/opt/mongo/scripting/mozjs/engine.o build/opt/mongo/scripting/mozjs/error.o build/opt/mongo/scripting/mozjs/exception.o build/opt/mongo/scripting/mozjs/global.o build/opt/mongo/scripting/mozjs/idwrapper.o build/opt/mongo/scripting/mozjs/implscope.o build/opt/mongo/scripting/mozjs/internedstring.o build/opt/mongo/scripting/mozjs/jscustomallocator.o build/opt/mongo/scripting/mozjs/jsstringwrapper.o build/opt/mongo/scripting/mozjs/jsthread.o build/opt/mongo/scripting/mozjs/maxkey.o build/opt/mongo/scripting/mozjs/minkey.o build/opt/mongo/scripting/mozjs/mongo.o build/opt/mongo/scripting/mozjs/mongohelpers.o build/opt/mongo/scripting/mozjs/mongohelpers_js.o build/opt/mongo/scripting/mozjs/nativefunction.o build/opt/mongo/scripting/mozjs/numberdecimal.o build/opt/mongo/scripting/mozjs/numberint.o build/opt/mongo/scripting/mozjs/numberlong.o build/opt/mongo/scripting/mozjs/object.o build/opt/mongo/scripting/mozjs/objectwrapper.o build/opt/mongo/scripting/mozjs/oid.o build/opt/mongo/scripting/mozjs/PosixNSPR.o build/opt/mongo/scripting/mozjs/proxyscope.o build/opt/mongo/scripting/mozjs/regexp.o build/opt/mongo/scripting/mozjs/session.o build/opt/mongo/scripting/mozjs/status.o build/opt/mongo/scripting/mozjs/timestamp.o build/opt/mongo/scripting/mozjs/uri.o build/opt/mongo/scripting/mozjs/valuereader.o build/opt/mongo/scripting/mozjs/valuewriter.o build/opt/mongo/scripting/mozjs/engine_gen.o build/opt/mongo/scripting/mozjs/scripting_util_gen.o Skipping ranlib for thin archive build/opt/mongo/scripting/libscripting.a In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/update/pop_node.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.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:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/update/pop_node.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/views/view_catalog.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/views/view_catalog.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/views/view_catalog.cpp:42: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:17, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:17, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:17, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/SymbolType.h:24, from src/third_party/mozjs-60/extract/js/src/gc/AtomMarking.h:13, from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/gc/Heap-inl.h:13, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer-inl.h:15, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:17, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/gc/Heap-inl.h:13, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer-inl.h:15, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:17, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpShared.h:25, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap-inl.h:13, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer-inl.h:15, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:17, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpShared.h:25, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap-inl.h:13, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer-inl.h:15, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:17, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/gc/Heap-inl.h:13, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer-inl.h:15, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:17, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/gc/Heap-inl.h:13, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer-inl.h:15, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:17, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:17, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/Value.h:24, from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:17, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::gc::StoreBuffer::ValueEdge; HashPolicy = js::HashSet, js::SystemAllocPolicy>::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::gc::StoreBuffer::ValueEdge; HashPolicy = js::gc::StoreBuffer::PointerEdgeHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:95:30: required from 'void js::gc::StoreBuffer::MonoTypeBuffer::clear() [with T = js::gc::StoreBuffer::ValueEdge]' src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.cpp:73:20: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::gc::StoreBuffer::CellPtrEdge; HashPolicy = js::HashSet, js::SystemAllocPolicy>::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::gc::StoreBuffer::CellPtrEdge; HashPolicy = js::gc::StoreBuffer::PointerEdgeHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:95:30: required from 'void js::gc::StoreBuffer::MonoTypeBuffer::clear() [with T = js::gc::StoreBuffer::CellPtrEdge]' src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.cpp:74:21: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::gc::StoreBuffer::SlotsEdge; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::gc::StoreBuffer::SlotsEdge; HashPolicy = js::gc::StoreBuffer::SlotsEdge::Hasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:95:30: required from 'void js::gc::StoreBuffer::MonoTypeBuffer::clear() [with T = js::gc::StoreBuffer::SlotsEdge]' src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.cpp:75:21: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ 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 Skipping ranlib for thin archive build/opt/mongo/db/ftdc/libftdc.a g++ -o build/opt/mongo/db/repl/replication_coordinator_impl_heartbeat.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp g++ -o build/opt/mongo/db/exec/index_scan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/index_scan.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/index_scan.h:32, from src/mongo/db/exec/index_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeEmitter.cpp:43, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:20: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/Policy.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Scope.h:15, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.h:14, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:11: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/index_scan.h:32, from src/mongo/db/exec/index_scan.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/ds/MemoryProtectionExceptionHandler.cpp:27, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/gc/Policy.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Scope.h:15, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.h:14, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:11: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/ds/MemoryProtectionExceptionHandler.cpp:27, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/gc/Policy.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Scope.h:15, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.h:14, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:11: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/ds/MemoryProtectionExceptionHandler.cpp:27, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Scope.h:19, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.h:14, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/ds/MemoryProtectionExceptionHandler.cpp:27, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Scope.h:19, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.h:14, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/ds/MemoryProtectionExceptionHandler.cpp:27, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Scope.h:19, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.h:14, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/ds/MemoryProtectionExceptionHandler.cpp:27, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:183, from src/third_party/mozjs-60/extract/js/src/frontend/ParseNode.h:13, from src/third_party/mozjs-60/extract/js/src/frontend/FullParseHandler.h:15, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:175, from src/third_party/mozjs-60/extract/js/src/frontend/EitherParser.h:22, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeEmitter.h:15, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.cpp:13, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:11: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/ds/MemoryProtectionExceptionHandler.cpp:27, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:183, from src/third_party/mozjs-60/extract/js/src/frontend/ParseNode.h:13, from src/third_party/mozjs-60/extract/js/src/frontend/FullParseHandler.h:15, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:175, from src/third_party/mozjs-60/extract/js/src/frontend/EitherParser.h:22, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeEmitter.h:15, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.cpp:13, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:11: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/ds/MemoryProtectionExceptionHandler.cpp:27, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/frontend/TokenStream.h:183, from src/third_party/mozjs-60/extract/js/src/frontend/ParseNode.h:13, from src/third_party/mozjs-60/extract/js/src/frontend/FullParseHandler.h:15, from src/third_party/mozjs-60/extract/js/src/frontend/Parser.h:175, from src/third_party/mozjs-60/extract/js/src/frontend/EitherParser.h:22, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeEmitter.h:15, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.cpp:13, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/ds/MemoryProtectionExceptionHandler.cpp:27, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/ds/MemoryProtectionExceptionHandler.cpp:27, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/ds/MemoryProtectionExceptionHandler.cpp:27, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/extract/js/src/vm/EnvironmentObject-inl.h:12, from src/third_party/mozjs-60/extract/js/src/frontend/BytecodeCompiler.cpp:24, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:11: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/Value.h:24, from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/ds/MemoryProtectionExceptionHandler.cpp:27, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap >::MapHashPolicy; AllocPolicy = js::TempAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = js::frontend::UsedNameTracker::UsedNameInfo; HashPolicy = js::DefaultHasher; AllocPolicy = js::TempAllocPolicy]' src/third_party/mozjs-60/extract/js/src/frontend/ParseContext.h:167:19: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap >::MapHashPolicy, js::TempAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap >::MapHashPolicy, js::TempAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:41, from src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp:53: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/index_scan.h:32, from src/mongo/db/exec/index_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/index_scan.h:32, from src/mongo/db/exec/index_scan.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:41, from src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp:53: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/ds/MemoryProtectionExceptionHandler.cpp:27, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/ds/MemoryProtectionExceptionHandler.cpp:27, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/ds/MemoryProtectionExceptionHandler.cpp:27, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/ds/MemoryProtectionExceptionHandler.cpp:27, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/ds/MemoryProtectionExceptionHandler.cpp:27, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/ds/MemoryProtectionExceptionHandler.cpp:27, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/Value.h:24, from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/ds/MemoryProtectionExceptionHandler.cpp:27, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:74:25: required from 'bool js::detail::InlineTable::switchToTable() [with InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:298:22: required from 'bool js::detail::InlineTable::add(js::detail::InlineTable::AddPtr&, KeyInput&&, Args&& ...) [with KeyInput = JSAtom*&; Args = {js::frontend::DeclaredNameInfo}; InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:535:25: required from 'bool js::InlineMap::add(js::InlineMap::AddPtr&, KeyInput&&, ValueInput&&) [with KeyInput = JSAtom*&; ValueInput = js::frontend::DeclaredNameInfo; Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; long unsigned int InlineEntries = 24; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; js::InlineMap::AddPtr = js::detail::InlineTable, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry, js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>, js::DefaultHasher, js::SystemAllocPolicy, 24>::AddPtr]' src/third_party/mozjs-60/extract/js/src/frontend/ParseContext.h:311:53: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:74:25: required from 'bool js::detail::InlineTable::switchToTable() [with InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:298:22: required from 'bool js::detail::InlineTable::add(js::detail::InlineTable::AddPtr&, KeyInput&&, Args&& ...) [with KeyInput = JSAtom*&; Args = {unsigned int&}; InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:535:25: required from 'bool js::InlineMap::add(js::InlineMap::AddPtr&, KeyInput&&, ValueInput&&) [with KeyInput = JSAtom*&; ValueInput = unsigned int&; Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; long unsigned int InlineEntries = 24; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; js::InlineMap::AddPtr = js::detail::InlineTable, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry, js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>, js::DefaultHasher, js::SystemAllocPolicy, 24>::AddPtr]' src/third_party/mozjs-60/extract/js/src/frontend/BytecodeEmitter.h:382:30: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:74:25: required from 'bool js::detail::InlineTable::switchToTable() [with InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:298:22: required from 'bool js::detail::InlineTable::add(js::detail::InlineTable::AddPtr&, KeyInput&&, Args&& ...) [with KeyInput = JSAtom*&; Args = {js::frontend::NameLocation&}; InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:535:25: required from 'bool js::InlineMap::add(js::InlineMap::AddPtr&, KeyInput&&, ValueInput&&) [with KeyInput = JSAtom*&; ValueInput = js::frontend::NameLocation&; Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; long unsigned int InlineEntries = 24; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; js::InlineMap::AddPtr = js::detail::InlineTable, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry, js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>, js::DefaultHasher, js::SystemAllocPolicy, 24>::AddPtr]' src/third_party/mozjs-60/extract/js/src/frontend/BytecodeEmitter.cpp:425:23: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:74:25: required from 'bool js::detail::InlineTable::switchToTable() [with InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:298:22: required from 'bool js::detail::InlineTable::add(js::detail::InlineTable::AddPtr&, KeyInput&&, Args&& ...) [with KeyInput = JSAtom*&; Args = {js::MaybeCheckTDZ&}; InlineEntry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry; Entry = js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry; Table = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; long unsigned int InlineEntries = 24]' src/third_party/mozjs-60/extract/js/src/ds/InlineTable.h:535:25: required from 'bool js::InlineMap::add(js::InlineMap::AddPtr&, KeyInput&&, ValueInput&&) [with KeyInput = JSAtom*&; ValueInput = js::MaybeCheckTDZ&; Key = JSAtom*; Value = js::frontend::RecyclableAtomMapValueWrapper; long unsigned int InlineEntries = 24; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy; js::InlineMap::AddPtr = js::detail::InlineTable, 24, js::DefaultHasher, js::SystemAllocPolicy>::InlineEntry, js::InlineMap, 24, js::DefaultHasher, js::SystemAllocPolicy>::Entry, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>, js::DefaultHasher, js::SystemAllocPolicy, 24>::AddPtr]' src/third_party/mozjs-60/extract/js/src/frontend/BytecodeEmitter.cpp:1480:21: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:41, from src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp:53: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:42, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:41, from src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp:53: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/auth/user_document_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/user_document_parser.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/ustrenum.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustrenum.cpp g++ -o build/opt/mongo/db/query/view_response_formatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/view_response_formatter.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from src/mongo/db/query/view_response_formatter.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from src/mongo/db/query/view_response_formatter.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/pipeline/libruntime_constants_idl.a build/opt/mongo/db/pipeline/runtime_constants_gen.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libruntime_constants_idl.a g++ -o build/opt/third_party/shim_intel_decimal128.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/shim_intel_decimal128.cpp 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/libshim_intel_decimal128.a g++ -o build/opt/mongo/db/pipeline/document_source_merge_modes_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/pipeline/document_source_merge_modes_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from src/mongo/db/query/view_response_formatter.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from src/mongo/db/query/view_response_formatter.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/document_source_merge_spec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_merge_spec.cpp g++ -o build/opt/mongo/db/pipeline/document_source_list_sessions_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/pipeline/document_source_list_sessions_gen.cpp In file included from src/mongo/db/pipeline/document_source_merge_spec.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_merge_modes_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_merge_modes_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_merge_modes_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/pipeline/document_source_writer.h:36, from src/mongo/db/pipeline/document_source_merge.h:33, from src/mongo/db/pipeline/document_source_merge_spec.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_merge_modes_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/pipeline/document_source_writer.h:36, from src/mongo/db/pipeline/document_source_merge.h:33, from src/mongo/db/pipeline/document_source_merge_spec.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/pipeline/document_source_writer.h:36, from src/mongo/db/pipeline/document_source_merge.h:33, from src/mongo/db/pipeline/document_source_merge_spec.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_list_sessions_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/logv2/log_component.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logv2/log_component.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_list_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_list_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_source_list_sessions_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/platform/shared_library_posix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/platform/shared_library_posix.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_atan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/s_atan.cpp g++ -o build/opt/mongo/db/repl/replication_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/replication_metrics.cpp Generating build/opt/mongo/util/net/ssl_options_server_gen.cpp g++ -o build/opt/mongo/util/net/ssl_options_server_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/util/net/ssl_options_server_gen.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/servrbf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/servrbf.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 g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/repl/replication_metrics.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/pipeline/libdocument_sources_idl.a build/opt/mongo/db/pipeline/document_source_change_stream_gen.o build/opt/mongo/db/pipeline/document_source_list_sessions_gen.o build/opt/mongo/db/pipeline/document_source_merge_gen.o build/opt/mongo/db/pipeline/document_source_merge_modes_gen.o build/opt/mongo/db/pipeline/document_source_replace_root_gen.o build/opt/mongo/db/pipeline/document_source_union_with_gen.o build/opt/mongo/db/pipeline/exchange_spec_gen.o build/opt/mongo/db/pipeline/value_gen.o build/opt/mongo/db/pipeline/document_source_merge_spec.o build/opt/mongo/db/pipeline/resume_token.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libdocument_sources_idl.a g++ -o build/opt/mongo/db/repl/vote_requester.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/vote_requester.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/repl/replication_metrics.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/ssl_options_server_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/repl/replication_metrics.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/repl/replication_metrics.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/ssl_options_server_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/ssl_options_server_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/ssl_options_server_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/librepl_coordinator_impl.a build/opt/mongo/db/repl/check_quorum_for_config_change.o build/opt/mongo/db/repl/repl_set_config_checks.o build/opt/mongo/db/repl/replication_coordinator_impl.o build/opt/mongo/db/repl/replication_coordinator_impl_elect_v1.o build/opt/mongo/db/repl/replication_coordinator_impl_heartbeat.o build/opt/mongo/db/repl/vote_requester.o build/opt/mongo/db/repl/replication_coordinator_impl_gen.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librepl_coordinator_impl.a gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnvlat1.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnvlat1.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/opt/mongo/db/repl/libdrop_pending_collection_reaper.a build/opt/mongo/db/repl/drop_pending_collection_reaper.o In file included from src/third_party/mozjs-60/extract/js/src/vm/UnboxedObject-inl.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:24, from src/third_party/mozjs-60/extract/js/src/jit/IonIC.cpp:13, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ Skipping ranlib for thin archive build/opt/mongo/db/repl/libdrop_pending_collection_reaper.a g++ -o build/opt/third_party/icu4c-57.1/source/common/uloc.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uloc.cpp g++ -o build/opt/mongo/db/repl/transaction_oplog_application.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/transaction_oplog_application.cpp g++ -o build/opt/mongo/db/repl/oplog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/oplog.cpp In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineJIT.h:13, from src/third_party/mozjs-60/extract/js/src/jit/SharedIC.h:12, from src/third_party/mozjs-60/extract/js/src/jit/CacheIR.h:17, from src/third_party/mozjs-60/extract/js/src/jit/IonIC.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/Value.h:24, from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/opt/mongo/db/repl/apply_ops_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/repl/apply_ops_gen.cpp In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h: In instantiation of 'T* js::jit::JitAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = JS::Value; Value = unsigned int; HashPolicy = js::jit::LIRGraph::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/jit/LIR.h:1893:37: required from here src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:101:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 101 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/Value.h:24, from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:15, from src/third_party/mozjs-60/extract/js/src/jit/BytecodeAnalysis.h:10, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonControlFlow.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/repl/transaction_oplog_application.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/oplog_entry_or_grouped_inserts.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/oplog_entry_or_grouped_inserts.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:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/apply_ops_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/repl/transaction_oplog_application.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/repl/transaction_oplog_application.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/repl/transaction_oplog_application.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/oplog.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/oplog.cpp:51: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/oplog.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/oplog.cpp:51: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_btree_impl.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call 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 -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_engine.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/ucnvbocu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnvbocu.cpp g++ -o build/opt/mongo/db/repl/rollback_impl_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/repl/rollback_impl_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/rollback_impl_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/rpc/metadata/tracking_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/metadata/tracking_metadata.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/rollback_impl_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/util/stacktrace_json.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/stacktrace_json.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/rollback_impl_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/rollback_impl_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/update/array_culling_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/array_culling_node.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/rpc/metadata/tracking_metadata.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/rpc/metadata/tracking_metadata.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/liboplog.a build/opt/mongo/db/repl/apply_ops.o build/opt/mongo/db/repl/oplog.o build/opt/mongo/db/repl/oplog_entry_or_grouped_inserts.o build/opt/mongo/db/repl/transaction_oplog_application.o build/opt/mongo/db/repl/apply_ops_gen.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplog.a gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_lmb.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_lmb.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/opt/mongo/db/storage/kv/libkv_drop_pending_ident_reaper.a build/opt/mongo/db/storage/kv/kv_drop_pending_ident_reaper.o Skipping ranlib for thin archive build/opt/mongo/db/storage/kv/libkv_drop_pending_ident_reaper.a 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/mongo/base/libsecure_allocator.a build/opt/mongo/base/secure_allocator.o Skipping ranlib for thin archive build/opt/mongo/base/libsecure_allocator.a g++ -o build/opt/mongo/db/ops/update_result.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ops/update_result.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/rpc/metadata/tracking_metadata.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/rpc/metadata/tracking_metadata.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/update/update_leaf_node.h:32, from src/mongo/db/update/modifier_node.h:39, from src/mongo/db/update/array_culling_node.h:35, from src/mongo/db/update/array_culling_node.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/librollback_impl.a build/opt/mongo/db/repl/rollback_impl.o build/opt/mongo/db/repl/rollback_impl_gen.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librollback_impl.a g++ -o build/opt/mongo/rpc/metadata/client_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/metadata/client_metadata.cpp g++ -o build/opt/mongo/db/storage/storage_engine_lock_file.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/storage_engine_lock_file.cpp g++ -o build/opt/mongo/s/query/cluster_find.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/query/cluster_find.cpp gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_cnv.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_cnv.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/platform/process_id.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/platform/process_id.cpp g++ -o build/opt/mongo/util/time_support.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/time_support.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from src/mongo/s/query/cluster_find.h:36, from src/mongo/s/query/cluster_find.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call 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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/storage/libstorage_engine_lock_file.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:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/document_source_change_stream.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_change_stream.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:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from src/mongo/s/query/cluster_find.h:36, from src/mongo/s/query/cluster_find.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/rpc/libclient_metadata.a build/opt/mongo/rpc/metadata/client_metadata.o Skipping ranlib for thin archive build/opt/mongo/rpc/libclient_metadata.a g++ -o build/opt/mongo/db/pipeline/document_source_change_stream_transform.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_change_stream_transform.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from src/mongo/s/query/cluster_find.h:36, from src/mongo/s/query/cluster_find.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from src/mongo/s/query/cluster_find.h:36, from src/mongo/s/query/cluster_find.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/pipeline.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/pipeline.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_change_stream.h:34, from src/mongo/db/pipeline/document_source_change_stream.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/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 In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_change_stream.h:34, from src/mongo/db/pipeline/document_source_change_stream.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_change_stream_transform.h:32, from src/mongo/db/pipeline/document_source_change_stream_transform.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_change_stream.h:34, from src/mongo/db/pipeline/document_source_change_stream.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_change_stream.h:34, from src/mongo/db/pipeline/document_source_change_stream.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_change_stream_transform.h:32, from src/mongo/db/pipeline/document_source_change_stream_transform.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_change_stream_transform.h:32, from src/mongo/db/pipeline/document_source_change_stream_transform.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_change_stream_transform.h:32, from src/mongo/db/pipeline/document_source_change_stream_transform.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/pipeline.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/db/pipeline/pipeline.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/db/pipeline/pipeline.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/pipeline.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from src/mongo/s/query/cluster_find.h:36, from src/mongo/s/query/cluster_find.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/document_source_unwind.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_unwind.cpp g++ -o build/opt/mongo/db/pipeline/document_source_facet.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_facet.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/pipeline/pipeline.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/document_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_unwind.h:32, from src/mongo/db/pipeline/document_source_unwind.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_unwind.h:32, from src/mongo/db/pipeline/document_source_unwind.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_facet.h:37, from src/mongo/db/pipeline/document_source_facet.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_unwind.h:32, from src/mongo/db/pipeline/document_source_unwind.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_unwind.h:32, from src/mongo/db/pipeline/document_source_unwind.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_facet.h:37, from src/mongo/db/pipeline/document_source_facet.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/document_source_group.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_group.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_facet.h:37, from src/mongo/db/pipeline/document_source_facet.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_facet.h:37, from src/mongo/db/pipeline/document_source_facet.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/expression.h:47, from src/mongo/db/pipeline/accumulator.h:43, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_group.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_group.h:37, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_group.h:37, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_group.h:37, from src/mongo/db/pipeline/document_source_group.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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:240:21: warning: redundant move in return statement [-Wredundant-move] 240 | return std::move(out); | ~~~~~~~~~^~~~~ src/mongo/db/pipeline/document_source_group.cpp:240:21: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/tee_buffer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/tee_buffer.cpp g++ -o build/opt/mongo/db/pipeline/document_source_graph_lookup.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_graph_lookup.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_group.h:37, 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::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/document_source_index_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_index_stats.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/tee_buffer.h:37, from src/mongo/db/pipeline/tee_buffer.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/tee_buffer.h:37, from src/mongo/db/pipeline/tee_buffer.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/tee_buffer.h:37, from src/mongo/db/pipeline/tee_buffer.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/tee_buffer.h:37, from src/mongo/db/pipeline/tee_buffer.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_graph_lookup.h:33, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_graph_lookup.h:33, from src/mongo/db/pipeline/document_source_graph_lookup.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_graph_lookup.h:33, from src/mongo/db/pipeline/document_source_graph_lookup.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_graph_lookup.h:33, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_index_stats.h:33, from src/mongo/db/pipeline/document_source_index_stats.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_index_stats.h:33, from src/mongo/db/pipeline/document_source_index_stats.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572: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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_index_stats.h:33, from src/mongo/db/pipeline/document_source_index_stats.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_index_stats.h:33, from src/mongo/db/pipeline/document_source_index_stats.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/document_source_limit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_limit.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_graph_lookup.h:33, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/sequential_document_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/sequential_document_cache.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_limit.h:32, from src/mongo/db/pipeline/document_source_limit.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_limit.h:32, from src/mongo/db/pipeline/document_source_limit.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_limit.h:32, from src/mongo/db/pipeline/document_source_limit.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_limit.h:32, from src/mongo/db/pipeline/document_source_limit.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/document_source_check_resume_token.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_check_resume_token.cpp g++ -o build/opt/mongo/db/pipeline/document_source_list_local_sessions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_list_local_sessions.cpp g++ -o build/opt/mongo/db/pipeline/document_source_merge.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_merge.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/pipeline/document_source_check_resume_token.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/pipeline/document_source_check_resume_token.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_list_local_sessions.h:38, from src/mongo/db/pipeline/document_source_list_local_sessions.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/pipeline/document_source_check_resume_token.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/pipeline/document_source_check_resume_token.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/pipeline/document_source_writer.h:36, from src/mongo/db/pipeline/document_source_merge.h:33, from src/mongo/db/pipeline/document_source_merge.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_list_local_sessions.h:38, from src/mongo/db/pipeline/document_source_list_local_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_list_local_sessions.h:38, from src/mongo/db/pipeline/document_source_list_local_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_list_local_sessions.h:38, from src/mongo/db/pipeline/document_source_list_local_sessions.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/pipeline/document_source_writer.h:36, from src/mongo/db/pipeline/document_source_merge.h:33, from src/mongo/db/pipeline/document_source_merge.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/document_source_sort.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_sort.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/pipeline/document_source_writer.h:36, from src/mongo/db/pipeline/document_source_merge.h:33, from src/mongo/db/pipeline/document_source_merge.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/pipeline/document_source_writer.h:36, from src/mongo/db/pipeline/document_source_merge.h:33, from src/mongo/db/pipeline/document_source_merge.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/document_path_support.h:38, from src/mongo/db/query/sort_pattern.h:34, from src/mongo/db/exec/sort_key_comparator.h:35, from src/mongo/db/exec/sort_executor.h:34, from src/mongo/db/pipeline/document_source_sort.h:32, from src/mongo/db/pipeline/document_source_sort.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_sort.h:34, from src/mongo/db/pipeline/document_source_sort.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_sort.h:34, from src/mongo/db/pipeline/document_source_sort.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:45, from src/mongo/db/pipeline/document_source_sort.h:34, from src/mongo/db/pipeline/document_source_sort.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/wiredtiger/oplog_stone_parameters_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/storage/wiredtiger/oplog_stone_parameters_gen.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/unistr_cnv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unistr_cnv.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_gen.o Skipping ranlib for thin archive build/opt/mongo/s/query/libcluster_query.a 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 ar rcsTD build/opt/mongo/db/storage/devnull/libstorage_devnull_core.a build/opt/mongo/db/storage/devnull/devnull_kv_engine.o Skipping ranlib for thin archive build/opt/mongo/db/storage/devnull/libstorage_devnull_core.a g++ -o build/opt/mongo/db/repl/heartbeat_response_action.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/heartbeat_response_action.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/liblogical_session_id.a build/opt/mongo/db/logical_session_id.o build/opt/mongo/db/logical_session_id_gen.o Skipping ranlib for thin archive build/opt/mongo/db/liblogical_session_id.a g++ -o build/opt/mongo/client/sdam/server_description.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/sdam/server_description.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/wiredtiger/oplog_stone_parameters_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/wiredtiger/oplog_stone_parameters_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/wiredtiger/oplog_stone_parameters_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/storage/wiredtiger/oplog_stone_parameters_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/index/index_access_method_factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index/index_access_method_factory.cpp src/mongo/client/sdam/server_description.cpp: In member function 'void mongo::sdam::ServerDescription::saveTags(mongo::BSONObj)': src/mongo/client/sdam/server_description.cpp:131:21: warning: loop variable 'key' creates a copy from type 'const std::__cxx11::basic_string' [-Wrange-loop-construct] 131 | for (const auto key : keys) { | ^~~ src/mongo/client/sdam/server_description.cpp:131:21: note: use reference type to prevent copying 131 | for (const auto key : keys) { | ^~~ | & 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_documents.o build/opt/mongo/db/pipeline/document_source_exchange.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_shard_filter.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_cached_and_active_users.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_lookup_change_pre_image.o build/opt/mongo/db/pipeline/document_source_match.o build/opt/mongo/db/pipeline/document_source_merge.o build/opt/mongo/db/pipeline/document_source_out.o build/opt/mongo/db/pipeline/document_source_plan_cache_stats.o build/opt/mongo/db/pipeline/document_source_project.o build/opt/mongo/db/pipeline/document_source_queue.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/document_source_tee_consumer.o build/opt/mongo/db/pipeline/document_source_union_with.o build/opt/mongo/db/pipeline/document_source_unwind.o build/opt/mongo/db/pipeline/pipeline.o build/opt/mongo/db/pipeline/semantic_analysis.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 g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp g++ -o build/opt/mongo/db/s/balancer/scoped_migration_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/balancer/scoped_migration_request.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.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:174:25: warning: redundant move in return statement [-Wredundant-move] 174 | return std::move(scopedMigrationRequest); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/s/balancer/scoped_migration_request.cpp:174:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/wiredtiger/liboplog_stone_parameters.a build/opt/mongo/db/storage/wiredtiger/oplog_stone_parameters_gen.o Skipping ranlib for thin archive build/opt/mongo/db/storage/wiredtiger/liboplog_stone_parameters.a g++ -o build/opt/mongo/db/service_entry_point_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/service_entry_point_mongod.cpp In file included from src/third_party/mozjs-60/extract/js/src/builtin/DataViewObject.cpp:34, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/ArrayBufferObject.h:15, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AtomicOperations-x86-shared-gcc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/AtomicOperations.h:352, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:61, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/ArrayBufferObject.h:15, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AtomicOperations-x86-shared-gcc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/AtomicOperations.h:352, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:61, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/ArrayBufferObject.h:15, from src/third_party/mozjs-60/extract/js/src/jit/x86-shared/AtomicOperations-x86-shared-gcc.h:15, from src/third_party/mozjs-60/extract/js/src/jit/AtomicOperations.h:352, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:61, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/wasm/WasmInstance.h:23, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:67, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/opt/mongo/db/geo/geoparser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/geo/geoparser.cpp In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 6]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 6]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::CONSTRUCT; long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1072:57: required from 'js::FixedConstructArgs::FixedConstructArgs(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/builtin/DataViewObject.cpp:1026:35: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.cpp:48, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/service_entry_point_mongod.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:39, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/service_entry_point_mongod.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/gc/RelocationOverlay.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:12, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/gc/RelocationOverlay.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:12, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/gc/RelocationOverlay.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:12, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:19, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:18, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:19, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:18, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:19, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:18, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gc::TenureCountCache]': src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:159:42: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gc::TenureCountCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:18, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:152:8: note: 'struct js::gc::TenureCountCache' declared here 152 | struct TenureCountCache | ^~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:38, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = mozilla::EnumeratedArray >]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.cpp:714:12: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mozilla::EnumeratedArray >' with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/mozilla/ArrayUtils.h:23, from src/third_party/mozjs-60/include/mozilla/RangedPtr.h:15, from src/third_party/mozjs-60/include/mozilla/Range.h:10, from src/third_party/mozjs-60/extract/js/src/jsapi.h:15, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/mozilla/EnumeratedArray.h:44:7: note: 'class mozilla::EnumeratedArray >' declared here 44 | class EnumeratedArray | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = mozilla::EnumeratedArray]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.cpp:1101:16: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mozilla::EnumeratedArray' with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/mozilla/ArrayUtils.h:23, from src/third_party/mozjs-60/include/mozilla/RangedPtr.h:15, from src/third_party/mozjs-60/include/mozilla/Range.h:10, from src/third_party/mozjs-60/extract/js/src/jsapi.h:15, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/mozilla/EnumeratedArray.h:44:7: note: 'class mozilla::EnumeratedArray' declared here 44 | class EnumeratedArray | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = mozilla::EnumeratedArray >]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.cpp:1102:16: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mozilla::EnumeratedArray >' with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/mozilla/ArrayUtils.h:23, from src/third_party/mozjs-60/include/mozilla/RangedPtr.h:15, from src/third_party/mozjs-60/include/mozilla/Range.h:10, from src/third_party/mozjs-60/extract/js/src/jsapi.h:15, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/mozilla/EnumeratedArray.h:44:7: note: 'class mozilla::EnumeratedArray >' declared here 44 | class EnumeratedArray | ^~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/service_entry_point_mongod.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/service_entry_point_mongod.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = void* const; HashPolicy = js::HashSet, js::SystemAllocPolicy>::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = void*; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Nursery.cpp:956:19: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JS::Value*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/RootMarking.cpp:413:30: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/gc/Marking-inl.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ g++ -o build/opt/mongo/executor/scoped_task_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/executor/scoped_task_executor.cpp ar rcsTD build/opt/mongo/util/net/libssl_options_server.a build/opt/mongo/util/net/ssl_options_server.o build/opt/mongo/util/net/ssl_options_server_gen.o Skipping ranlib for thin archive build/opt/mongo/util/net/libssl_options_server.a g++ -o build/opt/mongo/db/update/set_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/set_node.cpp g++ -o build/opt/mongo/transport/service_state_machine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/transport/service_state_machine.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/update/update_leaf_node.h:32, from src/mongo/db/update/modifier_node.h:39, from src/mongo/db/update/set_node.h:35, from src/mongo/db/update/set_node.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/update/path_support.h:40, from src/mongo/db/update/set_node.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/free_mon/free_mon_queue.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_queue.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:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call 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 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 g++ -o build/opt/third_party/icu4c-57.1/source/common/propname.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/propname.cpp ar rcsTD build/opt/mongo/db/libtransaction.a build/opt/mongo/db/retryable_writes_stats.o build/opt/mongo/db/server_transactions_metrics.o build/opt/mongo/db/session_catalog_mongod.o build/opt/mongo/db/transaction_history_iterator.o build/opt/mongo/db/transaction_metrics_observer.o build/opt/mongo/db/transaction_participant.o build/opt/mongo/db/session_txn_record_gen.o build/opt/mongo/db/transaction_participant_gen.o build/opt/mongo/db/transactions_stats_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libtransaction.a g++ -o build/opt/third_party/icu4c-57.1/source/common/utrie2_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/utrie2_builder.cpp g++ -o build/opt/mongo/db/repl/roll_back_local_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/roll_back_local_operations.cpp ar rcsTD build/opt/mongo/db/catalog/libdocument_validation.a build/opt/mongo/db/catalog/document_validation.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libdocument_validation.a g++ -o build/opt/mongo/db/exec/write_stage_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/write_stage_common.cpp g++ -o build/opt/mongo/client/replica_set_monitor_server_parameters.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/replica_set_monitor_server_parameters.cpp g++ -o build/opt/mongo/db/exec/plan_stage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/plan_stage.cpp gcc -o build/opt/third_party/icu4c-57.1/source/common/uhash.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uhash.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/icu4c-57.1/source/common/uinvchar.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uinvchar.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/mongo/db/s/sharding_runtime_d_params_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/s/sharding_runtime_d_params_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/write_stage_common.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/write_stage_common.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/write_stage_common.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/write_stage_common.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 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 g++ -o build/opt/third_party/icu4c-57.1/source/common/ucnv_bld.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_bld.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/exec/plan_stage.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/bytestrie.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/bytestrie.cpp ar rcsTD build/opt/mongo/db/libstartup_warnings_mongod.a build/opt/mongo/db/startup_warnings_mongod.o Skipping ranlib for thin archive build/opt/mongo/db/libstartup_warnings_mongod.a g++ -o build/opt/mongo/db/update/addtoset_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/addtoset_node.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/sharding_runtime_d_params_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/sharding_runtime_d_params_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/sharding_runtime_d_params_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/sharding_runtime_d_params_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/ulistformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ulistformatter.cpp g++ -o build/opt/mongo/db/logical_session_cache_stats_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/logical_session_cache_stats_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/update/update_leaf_node.h:32, from src/mongo/db/update/modifier_node.h:39, from src/mongo/db/update/addtoset_node.h:37, from src/mongo/db/update/addtoset_node.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_cache_stats_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/logical_session_cache_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/logical_session_cache_gen.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/logical_session_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/logical_session_cache.cpp ar rcsTD build/opt/mongo/db/s/libsharding_runtime_d_params.a build/opt/mongo/db/s/sharding_runtime_d_params_gen.o Skipping ranlib for thin archive build/opt/mongo/db/s/libsharding_runtime_d_params.a g++ -o build/opt/third_party/icu4c-57.1/source/common/locbased.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/locbased.cpp g++ -o build/opt/mongo/db/auth/user.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/user.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_cache_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_cache_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call Generating build/opt/mongo/db/stats/server_write_concern_metrics_gen.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/stats/server_write_concern_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/stats/server_write_concern_metrics.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:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_cache_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_cache_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/stats/server_write_concern_metrics_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/stats/server_write_concern_metrics_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/stats/server_write_concern_metrics.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands_in_multi_doc_txn_params_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands_in_multi_doc_txn_params_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/stats/server_write_concern_metrics.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/stats/server_write_concern_metrics_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/stats/server_write_concern_metrics_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands_in_multi_doc_txn_params_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/stats/server_write_concern_metrics_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/stats/server_write_concern_metrics_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 build/opt/mongo/db/logical_session_cache_gen.o Skipping ranlib for thin archive build/opt/mongo/db/liblogical_session_cache.a g++ -o build/opt/mongo/db/commands/find_and_modify.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/find_and_modify.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands_in_multi_doc_txn_params_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands_in_multi_doc_txn_params_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands_in_multi_doc_txn_params_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/find_and_modify.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/find_and_modify.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/find_and_modify.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/commands/find_and_modify.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/logv2/file_rotate_sink.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logv2/file_rotate_sink.cpp 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 build/opt/mongo/db/stats/server_write_concern_metrics_gen.o Skipping ranlib for thin archive build/opt/mongo/db/stats/libserver_read_concern_write_concern_metrics.a ar rcsTD build/opt/mongo/util/net/libsocket.a build/opt/mongo/util/net/sock.o Skipping ranlib for thin archive build/opt/mongo/util/net/libsocket.a g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbidata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/rbbidata.cpp ar rcsTD build/opt/mongo/db/repl/libinitial_sync_cloners.a build/opt/mongo/db/repl/all_database_cloner.o build/opt/mongo/db/repl/base_cloner.o build/opt/mongo/db/repl/collection_cloner.o build/opt/mongo/db/repl/database_cloner.o build/opt/mongo/db/repl/database_cloner_gen.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libinitial_sync_cloners.a g++ -o build/opt/mongo/util/platform_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/platform_init.cpp ar rcsTD build/opt/mongo/db/libcommands.a build/opt/mongo/db/commands.o build/opt/mongo/db/commands_in_multi_doc_txn_params_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libcommands.a g++ -o build/opt/mongo/db/exec/requires_index_stage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/requires_index_stage.cpp g++ -o build/opt/mongo/db/fts/ftsmongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/fts/ftsmongod.cpp 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 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 g++ -o build/opt/mongo/db/catalog/index_timestamp_helper.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/index_timestamp_helper.cpp 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 -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucasemap_titlecase_brkiter.cpp g++ -o build/opt/mongo/db/repl/storage_interface_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/storage_interface_impl.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/requires_index_stage.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/requires_index_stage.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/requires_index_stage.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/requires_index_stage.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/catalog/index_timestamp_helper.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/catalog/index_timestamp_helper.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/catalog/index_timestamp_helper.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/catalog/index_timestamp_helper.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/storage_interface_impl.h:39, from src/mongo/db/repl/storage_interface_impl.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/storage_interface_impl.h:39, from src/mongo/db/repl/storage_interface_impl.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/storage_interface_impl.h:39, from src/mongo/db/repl/storage_interface_impl.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/storage_interface_impl.h:39, from src/mongo/db/repl/storage_interface_impl.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/watchdog/watchdog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/watchdog/watchdog.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/query/router_stage_remove_metadata_fields.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/query/router_stage_remove_metadata_fields.cpp g++ -o build/opt/mongo/util/net/ssl_stream.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/ssl_stream.cpp g++ -o build/opt/mongo/util/net/ssl_parameters.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/ssl_parameters.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/util/net/ocsp/ocsp_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/ocsp/ocsp_manager.cpp 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/storage/libduplicate_key_error_info.a build/opt/mongo/db/storage/duplicate_key_error_info.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libduplicate_key_error_info.a g++ -o build/opt/mongo/db/query/getmore_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/getmore_request.cpp g++ -o build/opt/mongo/db/query/count_command_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/query/count_command_gen.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 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 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/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 gcc -o build/opt/third_party/timelib-2021.06/parse_iso_intervals.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/timelib-2021.06 src/third_party/timelib-2021.06/parse_iso_intervals.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/timelib-2021.06/timelib.o -c -std=c11 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/timelib-2021.06 src/third_party/timelib-2021.06/timelib.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/getmore_request.h:37, from src/mongo/db/query/getmore_request.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call ar rcsTD build/opt/third_party/timelib-2021.06/libtimelib.a build/opt/third_party/timelib-2021.06/astro.o build/opt/third_party/timelib-2021.06/dow.o build/opt/third_party/timelib-2021.06/interval.o build/opt/third_party/timelib-2021.06/parse_date.o build/opt/third_party/timelib-2021.06/parse_iso_intervals.o build/opt/third_party/timelib-2021.06/parse_tz.o build/opt/third_party/timelib-2021.06/parse_posix.o build/opt/third_party/timelib-2021.06/parse_zoneinfo.o build/opt/third_party/timelib-2021.06/timelib.o build/opt/third_party/timelib-2021.06/tm2unixtime.o build/opt/third_party/timelib-2021.06/unixtime2tm.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:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/third_party/timelib-2021.06/libtimelib.a ar rcsTD build/opt/mongo/db/libcursor_server_params.a build/opt/mongo/db/cursor_server_params.o build/opt/mongo/db/cursor_server_params_gen.o src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/libcursor_server_params.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:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call g++ -o build/opt/third_party/shim_snappy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS src/third_party/shim_snappy.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:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call ar rcsTD build/opt/third_party/libshim_snappy.a build/opt/third_party/shim_snappy.o src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/third_party/libshim_snappy.a In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/count_command_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/exec/working_set_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/working_set_common.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/getmore_request.h:37, from src/mongo/db/query/getmore_request.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/net/libssl_manager.a build/opt/mongo/util/net/private/ssl_expiration.o build/opt/mongo/util/net/ssl_manager.o build/opt/mongo/util/net/ssl_parameters.o build/opt/mongo/util/net/ssl_manager_openssl.o build/opt/mongo/util/net/ssl_stream.o build/opt/mongo/util/net/ssl_parameters_gen.o build/opt/mongo/util/net/ocsp/ocsp_manager.o Skipping ranlib for thin archive build/opt/mongo/util/net/libssl_manager.a g++ -o build/opt/mongo/executor/task_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/executor/task_executor.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/count_command_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/getmore_request.h:37, from src/mongo/db/query/getmore_request.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/getmore_request.h:37, from src/mongo/db/query/getmore_request.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/count_command_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/count_command_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/working_set_common.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/working_set_common.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/working_set_common.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/working_set_common.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/db/update/log_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/log_builder.cpp g++ -o build/opt/mongo/base/initializer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/initializer.cpp g++ -o build/opt/mongo/transport/message_compressor_zstd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/zstandard-1.4.3/zstd/lib -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/transport/message_compressor_zstd.cpp ar rcsTD build/opt/mongo/db/query/libcommand_request_response.a build/opt/mongo/db/query/count_command_as_aggregation_command.o 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 build/opt/mongo/db/query/count_command_gen.o Skipping ranlib for thin archive build/opt/mongo/db/query/libcommand_request_response.a g++ -o build/opt/mongo/transport/message_compressor_zlib.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/zstandard-1.4.3/zstd/lib -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/transport/message_compressor_zlib.cpp 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 g++ -o build/opt/mongo/db/views/durable_view_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/views/durable_view_catalog.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/update/update_array_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/update_array_node.cpp 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 build/opt/mongo/transport/message_compressor_zstd.o Skipping ranlib for thin archive build/opt/mongo/transport/libmessage_compressor.a g++ -o build/opt/third_party/icu4c-57.1/source/common/unormcmp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unormcmp.cpp g++ -o build/opt/mongo/db/repl/replication_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/replication_info.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/views/durable_view_catalog.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/views/durable_view_catalog.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/update/update_array_node.h:39, from src/mongo/db/update/update_array_node.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/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:47:21: warning: redundant move in return statement [-Wredundant-move] 47 | return std::move(mergedNode); | ~~~~~~~~~^~~~~~~~~~~~ src/mongo/db/update/update_array_node.cpp:47:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/views/durable_view_catalog.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/views/durable_view_catalog.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/geo/hash.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/geo/hash.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/repl/replication_info.cpp:40: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/repl/replication_info.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/repl/replication_info.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/repl/replication_info.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/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 g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp 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 g++ -o build/opt/third_party/icu4c-57.1/source/common/resource.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/resource.cpp g++ -o build/opt/mongo/s/commands/flush_router_config_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/flush_router_config_cmd.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/flush_router_config_cmd.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/flush_router_config_cmd.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/flush_router_config_cmd.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/flush_router_config_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/repl/replication_metrics_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/repl/replication_metrics_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/replication_metrics_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ 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 g++ -o build/opt/mongo/db/exec/queued_data_stage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/queued_data_stage.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/replication_metrics_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h: In instantiation of 'T* js::jit::JitAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = JS::Value; Value = unsigned int; HashPolicy = js::jit::LIRGraph::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/jit/LIR.h:1893:37: required from here src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:101:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 101 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/replication_metrics_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/replication_metrics_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/exec/queued_data_stage.h:34, from src/mongo/db/exec/queued_data_stage.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/process_id.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/process_id.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 g++ -o build/opt/third_party/boost-1.70.0/libs/filesystem/src/path_traits.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/filesystem/src/path_traits.cpp Skipping ranlib for thin archive build/opt/mongo/s/commands/libshared_cluster_commands.a g++ -o build/opt/mongo/db/storage/storage_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/storage_options.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/utext.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/utext.cpp ar rcsTD build/opt/mongo/db/storage/libstorage_options.a build/opt/mongo/db/storage/storage_options.o build/opt/mongo/db/storage/storage_parameters_gen.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libstorage_options.a g++ -o build/opt/mongo/util/errno_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/errno_util.cpp g++ -o build/opt/mongo/base/data_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/data_type.cpp g++ -o build/opt/mongo/logv2/log_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logv2/log_util.cpp g++ -o build/opt/mongo/logger/rotatable_file_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logger/rotatable_file_manager.cpp g++ -o build/opt/mongo/logv2/bson_formatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logv2/bson_formatter.cpp g++ -o build/opt/mongo/bson/bsonmisc.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/bsonmisc.cpp g++ -o build/opt/mongo/util/version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/version.cpp g++ -o build/opt/mongo/logv2/redaction.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logv2/redaction.cpp g++ -o build/opt/mongo/bson/oid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/oid.cpp g++ -o build/opt/mongo/util/timer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/timer.cpp g++ -o build/opt/mongo/platform/shared_library.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/platform/shared_library.cpp g++ -o build/opt/mongo/base/simple_string_data_comparator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/simple_string_data_comparator.cpp g++ -o build/opt/mongo/logv2/attributes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logv2/attributes.cpp g++ -o build/opt/mongo/base/error_codes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/base/error_codes.cpp g++ -o build/opt/mongo/base/data_type_string_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/data_type_string_data.cpp g++ -o build/opt/mongo/logv2/ramlog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logv2/ramlog.cpp g++ -o build/opt/mongo/util/concurrency/thread_name.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/concurrency/thread_name.cpp g++ -o build/opt/mongo/util/uuid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/uuid.cpp g++ -o build/opt/mongo/base/data_range.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/data_range.cpp g++ -o build/opt/mongo/util/concurrency/idle_thread_block.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/concurrency/idle_thread_block.cpp g++ -o build/opt/mongo/platform/random.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/platform/random.cpp g++ -o build/opt/mongo/util/testing_proctor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/testing_proctor.cpp g++ -o build/opt/mongo/logv2/log_severity.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/unwind/platform/linux_x86_64/install/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logv2/log_severity.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 g++ -o build/opt/mongo/db/auth/sasl_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/sasl_options.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/filteredbrk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/filteredbrk.cpp g++ -o build/opt/mongo/db/clientcursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/clientcursor.cpp g++ -o build/opt/mongo/util/thread_safe_string.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/thread_safe_string.cpp 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/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_manager.o build/opt/mongo/logger/logger.o build/opt/mongo/logger/message_event_utf8_encoder.o build/opt/mongo/logger/ramlog.o build/opt/mongo/logger/rotatable_file_manager.o build/opt/mongo/logger/rotatable_file_writer.o build/opt/mongo/logv2/attributes.o build/opt/mongo/logv2/bson_formatter.o build/opt/mongo/logv2/console.o build/opt/mongo/logv2/file_rotate_sink.o build/opt/mongo/logv2/json_formatter.o build/opt/mongo/logv2/log_component.o build/opt/mongo/logv2/log_component_settings.o build/opt/mongo/logv2/log_detail.o build/opt/mongo/logv2/log_domain.o build/opt/mongo/logv2/log_domain_global.o build/opt/mongo/logv2/log_domain_internal.o build/opt/mongo/logv2/log_manager.o build/opt/mongo/logv2/log_severity.o build/opt/mongo/logv2/log_tag.o build/opt/mongo/logv2/log_util.o build/opt/mongo/logv2/plain_formatter.o build/opt/mongo/logv2/shared_access_fstream.o build/opt/mongo/logv2/ramlog.o build/opt/mongo/logv2/redaction.o build/opt/mongo/logv2/text_formatter.o build/opt/mongo/platform/decimal128.o build/opt/mongo/platform/mutex.o build/opt/mongo/platform/posix_fadvise.o build/opt/mongo/platform/process_id.o build/opt/mongo/platform/random.o build/opt/mongo/platform/shared_library.o build/opt/mongo/platform/shared_library_posix.o build/opt/mongo/platform/stack_locator.o build/opt/mongo/platform/stack_locator_linux.o build/opt/mongo/platform/strcasestr.o build/opt/mongo/platform/strnlen.o build/opt/mongo/util/allocator.o build/opt/mongo/util/assert_util.o build/opt/mongo/util/base64.o build/opt/mongo/util/boost_assert_impl.o build/opt/mongo/util/concurrency/idle_thread_block.o build/opt/mongo/util/concurrency/thread_name.o build/opt/mongo/util/duration.o build/opt/mongo/util/str_escape.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/platform_init.o build/opt/mongo/util/shell_exec.o build/opt/mongo/util/signal_handlers_synchronous.o build/opt/mongo/util/stacktrace_posix.o build/opt/mongo/util/stacktrace_json.o build/opt/mongo/util/stacktrace_somap.o build/opt/mongo/util/stacktrace_threads.o build/opt/mongo/util/str.o build/opt/mongo/util/system_clock_source.o build/opt/mongo/util/system_tick_source.o build/opt/mongo/util/text.o build/opt/mongo/util/testing_proctor.o build/opt/mongo/util/thread_safety_context.o build/opt/mongo/util/time_support.o build/opt/mongo/util/timer.o build/opt/mongo/util/uuid.o build/opt/mongo/util/version.o Skipping ranlib for thin archive build/opt/mongo/libbase.a g++ -o build/opt/third_party/icu4c-57.1/source/common/usprep.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/usprep.cpp 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 g++ -o build/opt/mongo/rpc/factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/factory.cpp ar rcsTD build/opt/mongo/db/geo/libgeoparser.a build/opt/mongo/db/geo/geoparser.o build/opt/mongo/db/geo/geometry_container.o Skipping ranlib for thin archive build/opt/mongo/db/geo/libgeoparser.a g++ -o build/opt/mongo/db/mongod_options_storage_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/mongod_options_storage_gen.cpp 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 g++ -o build/opt/mongo/db/catalog/collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/collection.cpp ar rcsTD build/opt/mongo/watchdog/libwatchdog.a build/opt/mongo/watchdog/watchdog.o Skipping ranlib for thin archive build/opt/mongo/watchdog/libwatchdog.a g++ -o build/opt/mongo/scripting/dbdirectclient_factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/dbdirectclient_factory.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/clientcursor.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/clientcursor.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/clientcursor.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/clientcursor.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mongod_options_storage_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mongod_options_storage_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mongod_options_storage_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mongod_options_storage_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/s/balancer/migration_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/balancer/migration_manager.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/catalog/libcollection.a build/opt/mongo/db/catalog/collection.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libcollection.a g++ -o build/opt/mongo/db/s/balancer/balancer_policy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/balancer/balancer_policy.cpp g++ -o build/opt/mongo/db/s/balancer/type_migration.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/balancer/type_migration.cpp g++ -o build/opt/mongo/db/commands/feature_compatibility_version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/feature_compatibility_version.cpp ar rcsTD build/opt/mongo/db/catalog/libindex_timestamp_helper.a build/opt/mongo/db/catalog/index_timestamp_helper.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libindex_timestamp_helper.a g++ -o build/opt/mongo/db/update/update_leaf_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/update_leaf_node.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:35, from src/mongo/db/commands/feature_compatibility_version.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:35, from src/mongo/db/commands/feature_compatibility_version.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:35, from src/mongo/db/commands/feature_compatibility_version.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:35, from src/mongo/db/commands/feature_compatibility_version.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/update/update_leaf_node.h:32, from src/mongo/db/update/update_leaf_node.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call 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 g++ -o build/opt/third_party/icu4c-57.1/source/common/bytestream.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/bytestream.cpp g++ -o build/opt/mongo/scripting/engine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/engine.cpp g++ -o build/opt/mongo/db/commands/profile_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/profile_common.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/vm/UnboxedObject-inl.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:24, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:28, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/commands/profile_common.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/update/arithmetic_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/arithmetic_node.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:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/commands/profile_common.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/s2/base/logging.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/base/logging.cc In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-60/extract/js/src/jit/BaselineIC.h:12, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:22, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-60/extract/js/src/jit/BaselineIC.h:12, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:22, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-60/extract/js/src/jit/BaselineIC.h:12, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:22, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineJIT.h:13, from src/third_party/mozjs-60/extract/js/src/jit/BaselineIC.h:15, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:22, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/opt/mongo/db/commands/count_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/count_cmd.cpp In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineJIT.h:13, from src/third_party/mozjs-60/extract/js/src/jit/BaselineIC.h:15, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:22, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h: In instantiation of 'T* js::jit::JitAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = JS::Value; Value = unsigned int; HashPolicy = js::jit::LIRGraph::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/jit/LIR.h:1893:37: required from here src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:101:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 101 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Recover.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Recover.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/update/update_leaf_node.h:32, from src/mongo/db/update/modifier_node.h:39, from src/mongo/db/update/arithmetic_node.h:35, from src/mongo/db/update/arithmetic_node.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/count_cmd.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/current_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/current_op.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/count_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/count_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/count_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/commands/get_last_error.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/get_last_error.cpp g++ -o build/opt/mongo/db/commands/http_client_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands/http_client_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:32, from src/mongo/db/commands/current_op.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:32, from src/mongo/db/commands/current_op.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/get_last_error.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:32, from src/mongo/db/commands/current_op.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:32, from src/mongo/db/commands/current_op.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/get_last_error.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/http_client_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/get_last_error.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/get_last_error.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/http_client_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/http_client_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/http_client_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/extract/js/src/util/DoubleToString.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/js/src/util/DoubleToString.cpp ar rcsTD build/opt/mongo/db/exec/libsort_executor.a build/opt/mongo/db/exec/sort_executor.o build/opt/mongo/db/exec/sort_key_comparator.o Skipping ranlib for thin archive build/opt/mongo/db/exec/libsort_executor.a ar rcsTD build/opt/mongo/s/query/libcluster_aggregate.a build/opt/mongo/s/query/cluster_aggregate.o build/opt/mongo/s/query/cluster_aggregation_planner.o Skipping ranlib for thin archive build/opt/mongo/s/query/libcluster_aggregate.a g++ -o build/opt/mongo/s/query/router_stage_mock.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/query/router_stage_mock.cpp ar rcsTD build/opt/mongo/db/catalog/libvalidate_idl.a build/opt/mongo/db/catalog/validate_gen.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libvalidate_idl.a g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/thread_id.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/thread_id.cpp g++ -o build/opt/mongo/db/exec/count_scan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/count_scan.cpp g++ -o build/opt/mongo/db/exec/distinct_scan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/distinct_scan.cpp ar rcsTD build/opt/mongo/s/query/librouter_exec_stage.a build/opt/mongo/s/query/document_source_merge_cursors.o build/opt/mongo/s/query/document_source_update_on_add_shard.o build/opt/mongo/s/query/router_stage_limit.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 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/get_last_error.o build/opt/mongo/db/commands/getmore_cmd.o build/opt/mongo/db/commands/http_client.o build/opt/mongo/db/commands/http_client_gen.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/killoperations_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_clear_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/run_aggregate.o build/opt/mongo/db/commands/sleep_command.o build/opt/mongo/db/commands/validate.o build/opt/mongo/db/commands/whats_my_sni_command.o build/opt/mongo/db/commands/write_commands/write_commands.o build/opt/mongo/db/commands/create_gen.o Skipping ranlib for thin archive build/opt/mongo/s/query/librouter_exec_stage.a g++ -o build/opt/third_party/mozjs-60/extract/mfbt/double-conversion/double-conversion/strtod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/mfbt/double-conversion/double-conversion/strtod.cc Skipping ranlib for thin archive build/opt/mongo/db/commands/libstandalone.a g++ -o build/opt/mongo/db/query/sort_pattern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/sort_pattern.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/udata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/udata.cpp ar rcsTD build/opt/mongo/db/catalog/libcommit_quorum_options.a build/opt/mongo/db/catalog/commit_quorum_options.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libcommit_quorum_options.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 g++ -o build/opt/mongo/s/is_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/is_mongos.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/count_scan.h:32, from src/mongo/db/exec/count_scan.cpp:30: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/count_scan.h:32, from src/mongo/db/exec/count_scan.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/distinct_scan.h:33, from src/mongo/db/exec/distinct_scan.cpp:30: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/distinct_scan.h:33, from src/mongo/db/exec/distinct_scan.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/count_scan.h:32, from src/mongo/db/exec/count_scan.cpp:30: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/count_scan.h:32, from src/mongo/db/exec/count_scan.cpp:30: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/pipeline/document_path_support.h:38, from src/mongo/db/query/sort_pattern.h:34, from src/mongo/db/query/sort_pattern.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/distinct_scan.h:33, from src/mongo/db/exec/distinct_scan.cpp:30: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/distinct_scan.h:33, from src/mongo/db/exec/distinct_scan.cpp:30: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/query/libsort_pattern.a build/opt/mongo/db/query/sort_pattern.o Skipping ranlib for thin archive build/opt/mongo/db/query/libsort_pattern.a g++ -o build/opt/mongo/db/free_mon/free_mon_protocol_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/free_mon/free_mon_protocol_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_protocol_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call g++ -o build/opt/mongo/client/index_spec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/index_spec.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:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/vm/UnboxedObject-inl.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:24, from src/third_party/mozjs-60/extract/js/src/jit/BaselineCompiler.cpp:34, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:29: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:17, from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ g++ -o build/opt/mongo/client/dbclient_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/dbclient_cursor.cpp In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h: In instantiation of 'T* js::jit::JitAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = JS::Value; Value = unsigned int; HashPolicy = js::jit::LIRGraph::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/jit/LIR.h:1893:37: required from here src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:101:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 101 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from src/mongo/client/dbclient_cursor.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from src/mongo/client/dbclient_cursor.cpp:46: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call 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 g++ -o build/opt/third_party/icu4c-57.1/source/common/resbund.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/resbund.cpp Generating build/opt/mongo/rpc/object_check_gen.cpp g++ -o build/opt/mongo/rpc/object_check_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/rpc/object_check_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from src/mongo/client/dbclient_cursor.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from src/mongo/client/dbclient_cursor.cpp:46: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/bytestrieiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/bytestrieiterator.cpp g++ -o build/opt/mongo/db/namespace_string.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/namespace_string.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 g++ -o build/opt/mongo/db/commands/whats_my_uri_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/whats_my_uri_cmd.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/rpc/object_check_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/rpc/object_check_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libnamespace_string.a build/opt/mongo/db/namespace_string.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:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/libnamespace_string.a gcc -o build/opt/third_party/icu4c-57.1/source/common/ustrfmt.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustrfmt.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:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/biggie/biggie_recovery_unit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/biggie/biggie_recovery_unit.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:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/rpc/object_check_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/rpc/object_check_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/whats_my_uri_cmd.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/whats_my_uri_cmd.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/whats_my_uri_cmd.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/whats_my_uri_cmd.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/client/libclientdriver_minimal.a build/opt/mongo/client/dbclient_base.o build/opt/mongo/client/dbclient_cursor.o build/opt/mongo/client/index_spec.o In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/biggie/biggie_recovery_unit.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/client/libclientdriver_minimal.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:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/biggie/biggie_visibility_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/biggie/biggie_visibility_manager.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:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/biggie/biggie_recovery_unit.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/biggie/biggie_recovery_unit.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/biggie/biggie_recovery_unit.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/fts/unicode/codepoints_diacritic_map.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/fts/unicode/codepoints_diacritic_map.cpp g++ -o build/opt/mongo/db/run_op_kill_cursors.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/run_op_kill_cursors.cpp g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/timestamp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/timestamp.cpp In file included from src/mongo/db/storage/biggie/biggie_record_store.h:37, from src/mongo/db/storage/biggie/biggie_kv_engine.h:36, from src/mongo/db/storage/biggie/biggie_recovery_unit.h:36, from src/mongo/db/storage/biggie/biggie_recovery_unit.cpp:37: src/mongo/db/storage/biggie/store.h: In instantiation of 'void mongo::biggie::RadixStore::_mergeResolveConflict(const mongo::biggie::RadixStore::Node*, const mongo::biggie::RadixStore::Node*, const mongo::biggie::RadixStore::Node*) [with Key = std::__cxx11::basic_string; T = std::__cxx11::basic_string]': src/mongo/db/storage/biggie/store.h:1416:21: required from 'void mongo::biggie::RadixStore::_merge3Helper(mongo::biggie::RadixStore::Node*, const mongo::biggie::RadixStore::Node*, const mongo::biggie::RadixStore::Node*, std::vector::Node*>&, std::vector&) [with Key = std::__cxx11::basic_string; T = std::__cxx11::basic_string]' src/mongo/db/storage/biggie/store.h:638:9: required from 'void mongo::biggie::RadixStore::merge3(const mongo::biggie::RadixStore&, const mongo::biggie::RadixStore&) [with Key = std::__cxx11::basic_string; T = std::__cxx11::basic_string]' src/mongo/db/storage/biggie/biggie_recovery_unit.cpp:63:36: required from here src/mongo/db/storage/biggie/store.h:1268:31: warning: loop variable 'otherVal' creates a copy from type 'const value_type' {aka 'const std::pair, std::__cxx11::basic_string >'} [-Wrange-loop-construct] 1268 | for (const value_type otherVal : other) { | ^~~~~~~~ src/mongo/db/storage/biggie/store.h:1268:31: note: use reference type to prevent copying 1268 | for (const value_type otherVal : other) { | ^~~~~~~~ | & src/mongo/db/storage/biggie/store.h:1306:31: warning: loop variable 'baseVal' creates a copy from type 'const value_type' {aka 'const std::pair, std::__cxx11::basic_string >'} [-Wrange-loop-construct] 1306 | for (const value_type baseVal : base) { | ^~~~~~~ src/mongo/db/storage/biggie/store.h:1306:31: note: use reference type to prevent copying 1306 | for (const value_type baseVal : base) { | ^~~~~~~ | & src/mongo/db/storage/biggie/store.h: In instantiation of 'void mongo::biggie::RadixStore::_mergeTwoBranches(const mongo::biggie::RadixStore::Node*, const mongo::biggie::RadixStore::Node*) [with Key = std::__cxx11::basic_string; T = std::__cxx11::basic_string]': src/mongo/db/storage/biggie/store.h:1427:17: required from 'void mongo::biggie::RadixStore::_merge3Helper(mongo::biggie::RadixStore::Node*, const mongo::biggie::RadixStore::Node*, const mongo::biggie::RadixStore::Node*, std::vector::Node*>&, std::vector&) [with Key = std::__cxx11::basic_string; T = std::__cxx11::basic_string]' src/mongo/db/storage/biggie/store.h:638:9: required from 'void mongo::biggie::RadixStore::merge3(const mongo::biggie::RadixStore&, const mongo::biggie::RadixStore&) [with Key = std::__cxx11::basic_string; T = std::__cxx11::basic_string]' src/mongo/db/storage/biggie/biggie_recovery_unit.cpp:63:36: required from here src/mongo/db/storage/biggie/store.h:1334:31: warning: loop variable 'otherVal' creates a copy from type 'const value_type' {aka 'const std::pair, std::__cxx11::basic_string >'} [-Wrange-loop-construct] 1334 | for (const value_type otherVal : other) { | ^~~~~~~~ src/mongo/db/storage/biggie/store.h:1334:31: note: use reference type to prevent copying 1334 | for (const value_type otherVal : other) { | ^~~~~~~~ | & g++ -o build/opt/mongo/db/kill_sessions_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/kill_sessions_gen.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 g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_sinh.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/e_sinh.cpp g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_rintf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/s_rintf.cpp g++ -o build/opt/mongo/util/elapsed_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/elapsed_tracker.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/storage/biggie/biggie_recovery_unit.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call 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 ar rcsTD build/opt/mongo/db/libsnapshot_window_util.a build/opt/mongo/db/snapshot_window_util.o Skipping ranlib for thin archive build/opt/mongo/db/libsnapshot_window_util.a g++ -o build/opt/mongo/db/operation_time_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/operation_time_tracker.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:35, from src/mongo/db/run_op_kill_cursors.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/kill_sessions_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:35, from src/mongo/db/run_op_kill_cursors.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:35, from src/mongo/db/run_op_kill_cursors.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:35, from src/mongo/db/run_op_kill_cursors.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/biggie/libstorage_biggie_core.a build/opt/mongo/db/storage/biggie/biggie_kv_engine.o build/opt/mongo/db/storage/biggie/biggie_record_store.o build/opt/mongo/db/storage/biggie/biggie_recovery_unit.o build/opt/mongo/db/storage/biggie/biggie_sorted_impl.o build/opt/mongo/db/storage/biggie/biggie_visibility_manager.o Skipping ranlib for thin archive build/opt/mongo/db/storage/biggie/libstorage_biggie_core.a g++ -o build/opt/mongo/db/logical_time.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/logical_time.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:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/storage/devnull/devnull_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/devnull/devnull_init.cpp 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 g++ -o build/opt/third_party/icu4c-57.1/source/common/unifilt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unifilt.cpp g++ -o build/opt/mongo/db/query/query_knobs_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/query/query_knobs_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/query_knobs_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:42, from src/mongo/db/storage/devnull/devnull_init.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:42, from src/mongo/db/storage/devnull/devnull_init.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/query_knobs_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/query_knobs_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:42, from src/mongo/db/storage/devnull/devnull_init.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/query_knobs_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:42, from src/mongo/db/storage/devnull/devnull_init.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call 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 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 ar rcsTD build/opt/mongo/s/libsessions_collection_sharded.a build/opt/mongo/s/sessions_collection_sharded.o Skipping ranlib for thin archive build/opt/mongo/s/libsessions_collection_sharded.a g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_exp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/e_exp.cpp 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 g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/default_attribute_names.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/default_attribute_names.cpp g++ -o build/opt/mongo/db/exec/record_store_fast_count.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/record_store_fast_count.cpp g++ -o build/opt/mongo/db/exec/return_key.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/return_key.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/record_store_fast_count.h:32, from src/mongo/db/exec/record_store_fast_count.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/record_store_fast_count.h:32, from src/mongo/db/exec/record_store_fast_count.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/exec/return_key.h:32, from src/mongo/db/exec/return_key.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/record_store_fast_count.h:32, from src/mongo/db/exec/record_store_fast_count.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/record_store_fast_count.h:32, from src/mongo/db/exec/record_store_fast_count.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/query/establish_cursors.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/query/establish_cursors.cpp g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_atan2.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/e_atan2.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/unistr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unistr.cpp 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 -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unistr_titlecase_brkiter.cpp g++ -o build/opt/mongo/db/exec/eof.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/eof.cpp g++ -o build/opt/mongo/db/update/path_support.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/path_support.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from build/opt/mongo/s/query/async_results_merger_params_gen.h:24, from src/mongo/s/query/establish_cursors.h:42, from src/mongo/s/query/establish_cursors.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from build/opt/mongo/s/query/async_results_merger_params_gen.h:24, from src/mongo/s/query/establish_cursors.h:42, from src/mongo/s/query/establish_cursors.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/exec/eof.h:32, from src/mongo/db/exec/eof.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from build/opt/mongo/s/query/async_results_merger_params_gen.h:24, from src/mongo/s/query/establish_cursors.h:42, from src/mongo/s/query/establish_cursors.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from build/opt/mongo/s/query/async_results_merger_params_gen.h:24, from src/mongo/s/query/establish_cursors.h:42, from src/mongo/s/query/establish_cursors.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/update/path_support.h:40, from src/mongo/db/update/path_support.cpp:30: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call 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 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 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 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 Generating build/opt/mongo/db/mongod_options_sharding_gen.cpp g++ -o build/opt/mongo/db/mongod_options_sharding_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/mongod_options_sharding_gen.cpp ar rcsTD build/opt/mongo/db/libprofile_filter.a build/opt/mongo/db/profile_filter.o Skipping ranlib for thin archive build/opt/mongo/db/libprofile_filter.a 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 ar rcsTD build/opt/mongo/db/libindex_builds_coordinator_mongod.a build/opt/mongo/db/index_builds_coordinator_mongod.o Skipping ranlib for thin archive build/opt/mongo/db/libindex_builds_coordinator_mongod.a ar rcsTD build/opt/mongo/db/pipeline/process_interface/libcommon_process_interface.a build/opt/mongo/db/pipeline/process_interface/common_process_interface.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/process_interface/libcommon_process_interface.a g++ -o build/opt/mongo/db/ops/write_ops_exec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ops/write_ops_exec.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/pluralmap.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/pluralmap.cpp g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_log1p.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/s_log1p.cpp g++ -o build/opt/mongo/db/keys_collection_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/keys_collection_manager.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mongod_options_sharding_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/ops/write_ops_exec.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/ops/write_ops_exec.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mongod_options_sharding_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mongod_options_sharding_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/ops/write_ops_exec.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/mongod_options_sharding_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/ops/write_ops_exec.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libinitialize_server_security_state.a build/opt/mongo/db/initialize_server_security_state.o Skipping ranlib for thin archive build/opt/mongo/db/libinitialize_server_security_state.a 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 gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnvhz.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnvhz.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/opt/mongo/db/libindex_build_entry_helpers.a build/opt/mongo/db/index_build_entry_helpers.o Skipping ranlib for thin archive build/opt/mongo/db/libindex_build_entry_helpers.a g++ -o build/opt/mongo/rpc/legacy_reply_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/legacy_reply_builder.cpp ar rcsTD build/opt/third_party/boost-1.70.0/libboost_filesystem.a build/opt/third_party/boost-1.70.0/libs/filesystem/src/codecvt_error_category.o build/opt/third_party/boost-1.70.0/libs/filesystem/src/operations.o build/opt/third_party/boost-1.70.0/libs/filesystem/src/path.o build/opt/third_party/boost-1.70.0/libs/filesystem/src/path_traits.o build/opt/third_party/boost-1.70.0/libs/filesystem/src/portability.o build/opt/third_party/boost-1.70.0/libs/filesystem/src/unique_path.o build/opt/third_party/boost-1.70.0/libs/filesystem/src/utf8_codecvt_facet.o build/opt/third_party/boost-1.70.0/libs/filesystem/src/windows_file_codecvt.o Skipping ranlib for thin archive build/opt/third_party/boost-1.70.0/libboost_filesystem.a 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 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 g++ -o build/opt/mongo/util/secure_compare_memory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/secure_compare_memory.cpp g++ -o build/opt/mongo/db/op_observer_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/op_observer_impl.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/rpc/librpc.a build/opt/mongo/rpc/factory.o build/opt/mongo/rpc/object_check.o build/opt/mongo/rpc/legacy_request.o build/opt/mongo/rpc/legacy_request_builder.o build/opt/mongo/rpc/legacy_reply.o build/opt/mongo/rpc/legacy_reply_builder.o build/opt/mongo/rpc/reply_builder_interface.o build/opt/mongo/rpc/object_check_gen.o Skipping ranlib for thin archive build/opt/mongo/rpc/librpc.a g++ -o build/opt/mongo/db/repl/storage_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/storage_interface.cpp g++ -o build/opt/mongo/db/exec/multi_plan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/multi_plan.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_impl.h:32, from src/mongo/db/op_observer_impl.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_impl.h:32, from src/mongo/db/op_observer_impl.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_impl.h:32, from src/mongo/db/op_observer_impl.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_impl.h:32, from src/mongo/db/op_observer_impl.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/storage_interface.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/storage_interface.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/storage_interface.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/storage_interface.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/multi_plan.h:33, from src/mongo/db/exec/multi_plan.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/multi_plan.h:33, from src/mongo/db/exec/multi_plan.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/multi_plan.h:33, from src/mongo/db/exec/multi_plan.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/multi_plan.h:33, from src/mongo/db/exec/multi_plan.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/exec/shard_filterer_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/shard_filterer_impl.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/exec/merge_sort.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/merge_sort.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/ops/parsed_delete.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ops/parsed_delete.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/exec/merge_sort.h:36, from src/mongo/db/exec/merge_sort.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call 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 g++ -o build/opt/mongo/db/exec/requires_all_indices_stage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/requires_all_indices_stage.cpp g++ -o build/opt/mongo/db/exec/geo_near.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/geo_near.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/ops/parsed_delete.h:33, from src/mongo/db/ops/parsed_delete.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/ops/parsed_delete.h:33, from src/mongo/db/ops/parsed_delete.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/ops/parsed_delete.h:33, from src/mongo/db/ops/parsed_delete.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/ops/parsed_delete.h:33, from src/mongo/db/ops/parsed_delete.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/exec/subplan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/subplan.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/index_scan.h:32, from src/mongo/db/exec/geo_near.h:32, from src/mongo/db/exec/geo_near.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/index_scan.h:32, from src/mongo/db/exec/geo_near.h:32, from src/mongo/db/exec/geo_near.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/index_scan.h:32, from src/mongo/db/exec/geo_near.h:32, from src/mongo/db/exec/geo_near.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/index_scan.h:32, from src/mongo/db/exec/geo_near.h:32, from src/mongo/db/exec/geo_near.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.h:32, from src/mongo/db/exec/subplan.h:39, from src/mongo/db/exec/subplan.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.h:32, from src/mongo/db/exec/subplan.h:39, from src/mongo/db/exec/subplan.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.h:32, from src/mongo/db/exec/subplan.h:39, from src/mongo/db/exec/subplan.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.h:32, from src/mongo/db/exec/subplan.h:39, from src/mongo/db/exec/subplan.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/exec/ensure_sorted.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/ensure_sorted.cpp g++ -o build/opt/mongo/db/exec/change_stream_proxy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/change_stream_proxy.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/exec/ensure_sorted.h:32, from src/mongo/db/exec/ensure_sorted.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/exec/or.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/or.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/exec/pipeline_proxy.h:35, from src/mongo/db/exec/change_stream_proxy.h:32, from src/mongo/db/exec/change_stream_proxy.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/db/exec/pipeline_proxy.h:37, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/db/exec/pipeline_proxy.h:37, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/db/exec/pipeline_proxy.h:37, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/query/plan_yield_policy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/plan_yield_policy.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/exec/or.h:32, from src/mongo/db/exec/or.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/query/plan_ranker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/plan_ranker.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/query/plan_yield_policy.h:34, from src/mongo/db/query/plan_yield_policy.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/query/plan_yield_policy.h:34, from src/mongo/db/query/plan_yield_policy.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/plan_ranker.h:37, from src/mongo/db/query/plan_ranker.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/exec/delete.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/delete.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/query/plan_yield_policy.h:34, from src/mongo/db/query/plan_yield_policy.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/query/plan_yield_policy.h:34, from src/mongo/db/query/plan_yield_policy.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, 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: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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, 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: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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, 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:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/delete.h:32, from src/mongo/db/exec/delete.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/query/plan_executor_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/plan_executor_impl.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/delete.h:32, from src/mongo/db/exec/delete.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/delete.h:32, from src/mongo/db/exec/delete.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/delete.h:32, from src/mongo/db/exec/delete.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/query/plan_executor_impl.h:35, from src/mongo/db/query/plan_executor_impl.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/query/plan_executor_impl.h:35, from src/mongo/db/query/plan_executor_impl.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/query/plan_executor_impl.h:35, from src/mongo/db/query/plan_executor_impl.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/query/plan_executor_impl.h:35, from src/mongo/db/query/plan_executor_impl.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/extract/js/src/builtin/RegExp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/unisetspan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unisetspan.cpp g++ -o build/opt/mongo/db/ftdc/ftdc_system_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ftdc/ftdc_system_stats.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/query/plan_executor_impl.cpp: In static member function 'static mongo::StatusWith > mongo::PlanExecutorImpl::make(mongo::OperationContext*, std::unique_ptr, std::unique_ptr, std::unique_ptr, std::unique_ptr, const boost::intrusive_ptr&, const mongo::Collection*, mongo::NamespaceString, mongo::PlanExecutor::YieldPolicy)': src/mongo/db/query/plan_executor_impl.cpp:217:21: warning: redundant move in return statement [-Wredundant-move] 217 | return std::move(exec); | ~~~~~~~~~^~~~~~ src/mongo/db/query/plan_executor_impl.cpp:217:21: note: remove 'std::move' call g++ -o build/opt/third_party/icu4c-57.1/source/common/ucnvsel.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnvsel.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/ustrcase_locale.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustrcase_locale.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/bytestriebuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/bytestriebuilder.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/filterednormalizer2.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/filterednormalizer2.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/locid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/locid.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/uniset.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uniset.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/schriter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/schriter.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/query/plan_executor_impl.h:35, from src/mongo/db/query/plan_executor_impl.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call gcc -o build/opt/third_party/icu4c-57.1/source/common/umapfile.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/umapfile.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/icu4c-57.1/source/common/ucharstrieiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucharstrieiterator.cpp gcc -o build/opt/third_party/icu4c-57.1/source/common/cwchar.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/cwchar.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/icu4c-57.1/source/common/uresdata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uresdata.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/utrie.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/utrie.cpp In file included from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:22: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ g++ -o build/opt/third_party/icu4c-57.1/source/common/charstr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/charstr.cpp In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ g++ -o build/opt/third_party/icu4c-57.1/source/common/stringtriebuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/stringtriebuilder.cpp In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:19, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:19, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:19, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:20, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:20, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:20, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:21: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ g++ -o build/opt/third_party/icu4c-57.1/source/common/simpleformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/simpleformatter.cpp In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:1185:37: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JSSubString'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:1179:8: note: 'struct JSSubString' declared here 1179 | struct JSSubString | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/opt/third_party/icu4c-57.1/source/common/ucharstriebuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucharstriebuilder.cpp In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-60/extract/js/src/vm/TaggedProto.h:10, from src/third_party/mozjs-60/extract/js/src/gc/Marking.h:16, from src/third_party/mozjs-60/extract/js/src/vm/RegExpObject.h:16, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ g++ -o build/opt/third_party/icu4c-57.1/source/common/uobject.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uobject.cpp gcc -o build/opt/third_party/icu4c-57.1/source/common/cmemory.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/cmemory.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbirb.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/rbbirb.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/uinit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uinit.cpp gcc -o build/opt/third_party/icu4c-57.1/source/common/locmap.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/locmap.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/icu4c-57.1/source/common/icuplug.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/icuplug.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/util_props.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/util_props.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/locutil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/locutil.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/unifiedcache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unifiedcache.cpp 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 -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustr_titlecase_brkiter.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/listformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/listformatter.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/sharedobject.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/sharedobject.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/ucase.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucase.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/ucharstrie.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucharstrie.cpp gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnvscsu.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnvscsu.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_u16.o -c -std=c11 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_u16.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbi.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/rbbi.cpp g++ -o build/opt/third_party/icu4c-57.1/source/common/servnotf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/servnotf.cpp g++ -o build/opt/mongo/rpc/metadata/logical_time_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/metadata/logical_time_metadata.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 g++ -o build/opt/mongo/transport/service_entry_point_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/transport/service_entry_point_impl.cpp Using tempfile /usr/src/tmp/tmpt_1cgcqp.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 @/usr/src/tmp/tmpt_1cgcqp.lnk Skipping ranlib for thin archive build/opt/third_party/icu4c-57.1/source/libicu_common.a g++ -o build/opt/mongo/db/update/storage_validation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/storage_validation.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/idhack.o build/opt/mongo/db/exec/index_scan.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/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/queued_data_stage.o build/opt/mongo/db/exec/record_store_fast_count.o build/opt/mongo/db/exec/requires_all_indices_stage.o build/opt/mongo/db/exec/requires_collection_stage.o build/opt/mongo/db/exec/requires_index_stage.o build/opt/mongo/db/exec/return_key.o build/opt/mongo/db/exec/shard_filter.o build/opt/mongo/db/exec/shard_filterer_impl.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/trial_stage.o build/opt/mongo/db/exec/update_stage.o build/opt/mongo/db/exec/upsert_stage.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/update_result.o build/opt/mongo/db/pipeline/document_source_cursor.o build/opt/mongo/db/pipeline/document_source_geo_near_cursor.o build/opt/mongo/db/pipeline/pipeline_d.o build/opt/mongo/db/query/explain.o build/opt/mongo/db/query/find.o build/opt/mongo/db/query/get_executor.o build/opt/mongo/db/query/internal_plans.o build/opt/mongo/db/query/plan_executor_impl.o build/opt/mongo/db/query/plan_ranker.o build/opt/mongo/db/query/plan_yield_policy.o build/opt/mongo/db/query/stage_builder.o build/opt/mongo/db/run_op_kill_cursors.o Skipping ranlib for thin archive build/opt/mongo/db/libquery_exec.a g++ -o build/opt/mongo/db/client_metadata_propagation_egress_hook.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/client_metadata_propagation_egress_hook.cpp g++ -o build/opt/mongo/db/update/bit_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/bit_node.cpp g++ -o build/opt/mongo/db/commands/server_status_internal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/server_status_internal.cpp g++ -o build/opt/mongo/db/commands/server_status_metric.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/server_status_metric.cpp ar rcsTD build/opt/mongo/db/libclient_metadata_propagation_egress_hook.a build/opt/mongo/db/client_metadata_propagation_egress_hook.o Skipping ranlib for thin archive build/opt/mongo/db/libclient_metadata_propagation_egress_hook.a g++ -o build/opt/mongo/db/commands/server_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/server_status.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/update/update_leaf_node.h:32, from src/mongo/db/update/modifier_node.h:39, from src/mongo/db/update/bit_node.h:36, from src/mongo/db/update/bit_node.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/update/bit_node.cpp:32: src/mongo/db/update/bit_node.h: In member function 'virtual mongo::BSONObj mongo::BitNode::operatorValue() const': src/mongo/db/update/bit_node.h:75:29: warning: loop variable '' creates a copy from type 'const mongo::BitNode::BitwiseOp' [-Wrange-loop-construct] 75 | for (const auto [bitOperator, operand] : _opList) { | ^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/update/bit_node.h:75:29: note: use reference type to prevent copying 75 | for (const auto [bitOperator, operand] : _opList) { | ^~~~~~~~~~~~~~~~~~~~~~ | & 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 ar rcsTD build/opt/third_party/boost-1.70.0/libboost_iostreams.a build/opt/third_party/boost-1.70.0/libs/iostreams/src/file_descriptor.o build/opt/third_party/boost-1.70.0/libs/iostreams/src/mapped_file.o Skipping ranlib for thin archive build/opt/third_party/boost-1.70.0/libboost_iostreams.a g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_expm1.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/s_expm1.cpp g++ -o build/opt/mongo/db/db.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/db.cpp g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/commands/server_status.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/event.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/event.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/commands/server_status.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/commands/server_status.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/commands/server_status.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/third_party/boost-1.70.0/boost/thread/pthread/condition_variable.hpp:15, from src/third_party/boost-1.70.0/boost/thread/condition_variable.hpp:16, from src/third_party/boost-1.70.0/boost/log/detail/event.hpp:42, from src/third_party/boost-1.70.0/libs/log/src/event.cpp:23: src/third_party/boost-1.70.0/boost/thread/pthread/thread_data.hpp: In member function 'void boost::thread_attributes::set_stack_size(std::size_t)': src/third_party/boost-1.70.0/boost/thread/pthread/thread_data.hpp:61:19: warning: comparison of integer expressions of different signedness: 'std::size_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare] 61 | if (size mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/auth/auth_op_observer.h:32, from src/mongo/db/db.cpp:50: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/auth/auth_op_observer.h:32, from src/mongo/db/db.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/op_observer.h:35, from src/mongo/db/auth/auth_op_observer.h:32, from src/mongo/db/db.cpp:50: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.h:18, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/gc/Policy.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Scope.h:15, from src/third_party/mozjs-60/extract/js/src/frontend/NameAnalysisTypes.h:11, from src/third_party/mozjs-60/extract/js/src/vm/JSScript.h:20, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.h:18, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/gc/Policy.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Scope.h:15, from src/third_party/mozjs-60/extract/js/src/frontend/NameAnalysisTypes.h:11, from src/third_party/mozjs-60/extract/js/src/vm/JSScript.h:20, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.h:18, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Scope.h:19, from src/third_party/mozjs-60/extract/js/src/frontend/NameAnalysisTypes.h:11, from src/third_party/mozjs-60/extract/js/src/vm/JSScript.h:20, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.h:18, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Scope.h:19, from src/third_party/mozjs-60/extract/js/src/frontend/NameAnalysisTypes.h:11, from src/third_party/mozjs-60/extract/js/src/vm/JSScript.h:20, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.h:18, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Scope.h:19, from src/third_party/mozjs-60/extract/js/src/frontend/NameAnalysisTypes.h:11, from src/third_party/mozjs-60/extract/js/src/vm/JSScript.h:20, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.h:18, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/JSScript.h:23, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:12, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.h:18, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:19, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:35, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.h:18, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:19, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:35, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.h:18, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.h:18, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.h:18, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gc::TenureCountCache]': src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:159:42: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gc::TenureCountCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:35, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:152:8: note: 'struct js::gc::TenureCountCache' declared here 152 | struct TenureCountCache | ^~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.h:18, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:51, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.h:18, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/opt/mongo/db/update/field_checker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/field_checker.cpp In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.h:18, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.h:18, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.h:18, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.h:18, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.h:18, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.h:18, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/BytecodeUtil.cpp:11, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ 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 g++ -o build/opt/mongo/db/catalog/validate_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/validate_state.cpp ar rcsTD build/opt/mongo/db/commands/libserver_status_core.a build/opt/mongo/db/commands/server_status.o 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 g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp ar rcsTD build/opt/third_party/s2/util/math/libmath.a build/opt/third_party/s2/util/math/mathutil.o Skipping ranlib for thin archive build/opt/third_party/s2/util/math/libmath.a 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 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 ar rcsTD build/opt/mongo/db/libop_observer_util.a build/opt/mongo/db/op_observer_util.o Skipping ranlib for thin archive build/opt/mongo/db/libop_observer_util.a g++ -o build/opt/third_party/shim_kms_message.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/kms-message/src src/third_party/shim_kms_message.cpp ar rcsTD build/opt/third_party/libshim_kms_message.a build/opt/third_party/shim_kms_message.o Skipping ranlib for thin archive build/opt/third_party/libshim_kms_message.a g++ -o build/opt/mongo/db/catalog_raii.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog_raii.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/catalog/validate_state.h:35, from src/mongo/db/catalog/validate_state.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/catalog/validate_state.h:35, from src/mongo/db/catalog/validate_state.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/catalog_raii.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/catalog_raii.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/catalog/validate_state.h:35, from src/mongo/db/catalog/validate_state.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/catalog/validate_state.h:35, from src/mongo/db/catalog/validate_state.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/catalog_raii.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/catalog_raii.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/jit/MCallOptimize.cpp:36, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:29: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:11, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:11, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:11, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/jit/JitOptions.h:12, from src/third_party/mozjs-60/extract/js/src/jit/IonOptimizationLevels.h:14, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:19, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:11, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:11, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:11, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:11, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-60/extract/js/src/jit/JitCompartment.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-60/extract/js/src/jit/JitCompartment.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:11, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/CompileInfo.h:13, from src/third_party/mozjs-60/extract/js/src/jit/JitCompartment.h:15, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::jit::MDefinition*; Value = js::jit::MDefinition*; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/jit/LoopUnroller.cpp:353:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:11, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:11, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/gc/Heap.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:16, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:11, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/CompileInfo.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitCompartment.h:15, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h: In instantiation of 'T* js::jit::JitAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = JS::Value; Value = unsigned int; HashPolicy = js::jit::LIRGraph::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/jit/LIR.h:1893:37: required from here src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:101:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 101 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/ExecutableAllocator.h:49, from src/third_party/mozjs-60/extract/js/src/jit/Linker.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Linker.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libcatalog_raii.a build/opt/mongo/db/catalog_raii.o Skipping ranlib for thin archive build/opt/mongo/db/libcatalog_raii.a g++ -o build/opt/mongo/db/update/unset_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/unset_node.cpp ar rcsTD build/opt/mongo/db/catalog/libvalidate_state.a build/opt/mongo/db/catalog/validate_state.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libvalidate_state.a g++ -o build/opt/mongo/db/catalog/index_builds_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/index_builds_manager.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/update/update_leaf_node.h:32, from src/mongo/db/update/modifier_node.h:39, from src/mongo/db/update/unset_node.h:35, from src/mongo/db/update/unset_node.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/util/dns_query.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/dns_query.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/index_builds_manager.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/index/libindex_access_method_factory.a build/opt/mongo/db/index/index_access_method_factory.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:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/index/libindex_access_method_factory.a 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 ar rcsTD build/opt/mongo/executor/libscoped_task_executor.a build/opt/mongo/executor/scoped_task_executor.o Skipping ranlib for thin archive build/opt/mongo/executor/libscoped_task_executor.a ar rcsTD build/opt/mongo/stdx/libstdx.a build/opt/mongo/stdx/set_terminate_internals.o Skipping ranlib for thin archive build/opt/mongo/stdx/libstdx.a g++ -o build/opt/mongo/db/ops/write_ops_retryability.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ops/write_ops_retryability.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:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/ops/find_and_modify_result.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ops/find_and_modify_result.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:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/client/libsasl_aws_client.a build/opt/mongo/client/sasl_aws_client_protocol.o build/opt/mongo/client/sasl_aws_client_protocol_gen.o Skipping ranlib for thin archive build/opt/mongo/client/libsasl_aws_client.a g++ -o build/opt/mongo/rpc/metadata/sharding_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/metadata/sharding_metadata.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/index_builds_manager.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/index_builds_manager.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/index_builds_manager.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/db/pipeline/javascript_execution.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/javascript_execution.cpp ar rcsTD build/opt/mongo/db/auth/libauth_op_observer.a build/opt/mongo/db/auth/auth_op_observer.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauth_op_observer.a g++ -o build/opt/mongo/db/update/update_object_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/update_object_node.cpp 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/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/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/storage/wiredtiger/libstorage_wiredtiger_customization_hooks.a g++ -o build/opt/mongo/s/query/blocking_results_merger.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/query/blocking_results_merger.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/client/sdam/server_selector.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/sdam/server_selector.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/update/update_object_node.h:40, from src/mongo/db/update/update_object_node.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/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:355:21: warning: redundant move in return statement [-Wredundant-move] 355 | return std::move(mergedNode); | ~~~~~~~~~^~~~~~~~~~~~ src/mongo/db/update/update_object_node.cpp:355:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from src/mongo/s/query/blocking_results_merger.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from src/mongo/s/query/blocking_results_merger.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from src/mongo/s/query/blocking_results_merger.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/uncommitted_collections.h:37, from src/mongo/db/transaction_participant.h:36, from src/mongo/s/query/blocking_results_merger.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/catalog/libindex_builds_manager.a build/opt/mongo/db/catalog/index_builds_manager.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libindex_builds_manager.a g++ -o build/opt/mongo/client/sdam/topology_state_machine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/sdam/topology_state_machine.cpp g++ -o build/opt/mongo/client/sdam/topology_listener.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/sdam/topology_listener.cpp g++ -o build/opt/mongo/db/ftdc/ftdc_server.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ftdc/ftdc_server.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 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/transport/libmessage_compressor_options_server.a build/opt/mongo/transport/message_compressor_options_server_gen.o Skipping ranlib for thin archive build/opt/mongo/transport/libmessage_compressor_options_server.a 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 g++ -o build/opt/mongo/db/ttl_collection_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ttl_collection_cache.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_server.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_server.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/client/sdam/libsdam.a build/opt/mongo/client/sdam/sdam_configuration.o build/opt/mongo/client/sdam/sdam_datatypes.o build/opt/mongo/client/sdam/server_description.o build/opt/mongo/client/sdam/topology_description.o build/opt/mongo/client/sdam/topology_listener.o build/opt/mongo/client/sdam/topology_state_machine.o build/opt/mongo/client/sdam/topology_manager.o build/opt/mongo/client/sdam/server_selector.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:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/client/sdam/libsdam.a ar rcsTD build/opt/mongo/db/repl/libdata_replicator_external_state_impl.a build/opt/mongo/db/repl/data_replicator_external_state_impl.o In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_server.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/repl/libdata_replicator_external_state_impl.a ar rcsTD build/opt/mongo/db/storage/libstorage_engine_impl.a build/opt/mongo/db/storage/storage_engine_impl.o build/opt/mongo/db/storage/kv/temporary_kv_record_store.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:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/storage/libstorage_engine_impl.a In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_server.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/third_party/mozjs-60/extract/js/src/mfbt/Unified_cpp_mfbt0.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/js/src/mfbt/Unified_cpp_mfbt0.cpp g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_log.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/e_log.cpp g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp 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 g++ -o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_ceil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/modules/fdlibm/s_ceil.cpp src/third_party/mozjs-60/extract/modules/fdlibm/s_ceil.cpp: In function 'double fdlibm::ceil(double)': src/third_party/mozjs-60/extract/modules/fdlibm/s_ceil.cpp:63:29: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int32_t' {aka 'int'} [-Wsign-compare] 63 | if(j mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:18, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jsexn.h:17, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jsexn.h:17, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jsexn.h:17, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:12, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:17, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsarray.h:12, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/jsarray.h:14, from src/third_party/mozjs-60/extract/js/src/vm/GlobalObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.h:10, from src/third_party/mozjs-60/extract/js/src/vm/PIC.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ g++ -o build/opt/third_party/mozjs-60/extract/mozglue/misc/TimeStamp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/mozglue/misc/TimeStamp.cpp g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/SymbolType.h:24, from src/third_party/mozjs-60/extract/js/src/gc/AtomMarking.h:13, from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpShared.h:25, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpShared.h:25, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x64/MacroAssembler-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:19, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Disassembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/GeneratorObject.cpp:14, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:20: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:16, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/vm/Iteration.h:17, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:16, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:9, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:15, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gc::TenureCountCache]': src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:159:42: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gc::TenureCountCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/HelperThreads.cpp:14, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:38: src/third_party/mozjs-60/extract/js/src/gc/GCInternals.h:152:8: note: 'struct js::gc::TenureCountCache' declared here 152 | struct TenureCountCache | ^~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/opt/third_party/mozjs-60/extract/js/src/vm/JSAtom.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:15, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h: In instantiation of 'T* js::jit::JitAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = JS::Value; Value = unsigned int; HashPolicy = js::jit::LIRGraph::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/jit/LIR.h:1893:37: required from here src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:101:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 101 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/vm/ForOfIterator.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Label.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:35, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:12, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Label.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:35, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Label.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:35, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Label.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:35, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Label.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:35, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Label.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:35, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Label.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:35, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/jit/CompileWrappers.h:10, from src/third_party/mozjs-60/extract/js/src/jit/Ion.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Label.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:35, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x64/MacroAssembler-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:19, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:36, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/Value.h:24, from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsutil.h:25, from src/third_party/mozjs-60/extract/js/src/ds/LifoAlloc.h:24, from src/third_party/mozjs-60/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-60/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.h:34, from src/third_party/mozjs-60/extract/js/src/irregexp/NativeRegExpMacroAssembler.cpp:31, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/List-inl.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:15, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp g++ -o build/opt/third_party/mozjs-60/extract/mfbt/Compression.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/mfbt/Compression.cpp g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:20, from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:12, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:12, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSContext.h:22, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:12, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSObject-inl.h:32, from src/third_party/mozjs-60/extract/js/src/vm/List-inl.h:14, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:15, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::wasm::LinkDataTierCacheablePod]': src/third_party/mozjs-60/extract/js/src/wasm/WasmModule.h:50:50: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::wasm::LinkDataTierCacheablePod'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/builtin/TestingFunctions.cpp:58, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:29: src/third_party/mozjs-60/extract/js/src/wasm/WasmModule.h:43:8: note: 'struct js::wasm::LinkDataTierCacheablePod' declared here 43 | struct LinkDataTierCacheablePod | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/GCVector.h:12, from src/third_party/mozjs-60/extract/js/src/gc/Rooting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jsnum.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/GCVector.h:12, from src/third_party/mozjs-60/extract/js/src/gc/Rooting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jsnum.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/GCVector.h:12, from src/third_party/mozjs-60/extract/js/src/gc/Rooting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jsnum.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/GCVector.h:12, from src/third_party/mozjs-60/extract/js/src/gc/Rooting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/GCVector.h:12, from src/third_party/mozjs-60/extract/js/src/gc/Rooting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/builtin/AtomicsObject.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/GCVector.h:12, from src/third_party/mozjs-60/extract/js/src/gc/Rooting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 6]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 6]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::CONSTRUCT; long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1072:57: required from 'js::FixedConstructArgs::FixedConstructArgs(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:3939:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/GCVector.h:12, from src/third_party/mozjs-60/extract/js/src/gc/Rooting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:28, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/GCVector.h:12, from src/third_party/mozjs-60/extract/js/src/gc/Rooting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/GCVector.h:12, from src/third_party/mozjs-60/extract/js/src/gc/Rooting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsnum.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 7]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 7]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 5]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 5]' src/third_party/mozjs-60/extract/js/src/builtin/TypedObject.cpp:124:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 5]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 5]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/builtin/TypedObject.cpp:162:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/jsfriendapi.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-60/extract/js/src/builtin/Promise.h:13, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.h:10, from src/third_party/mozjs-60/extract/js/src/builtin/Stream.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/GCVector.h:12, from src/third_party/mozjs-60/extract/js/src/gc/Rooting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:30: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/GCVector.h:12, from src/third_party/mozjs-60/extract/js/src/gc/Rooting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/GCVector.h:12, from src/third_party/mozjs-60/extract/js/src/gc/Rooting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsnum.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/GCVector.h:12, from src/third_party/mozjs-60/extract/js/src/gc/Rooting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsnum.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/include/js/HashTable.h:18, from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/GCVector.h:12, from src/third_party/mozjs-60/extract/js/src/gc/Rooting.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.h:12, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/jsnum.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom-inl.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSAtom.cpp:11: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ g++ -o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp In file included from src/third_party/mozjs-60/extract/js/src/vm/UnboxedObject-inl.h:14, from src/third_party/mozjs-60/extract/js/src/vm/Interpreter-inl.h:24, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:30, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/SymbolType.h:24, from src/third_party/mozjs-60/extract/js/src/gc/AtomMarking.h:13, from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpShared.h:25, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpShared.h:25, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x64/MacroAssembler-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:19, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/opt/third_party/mozjs-60/extract/js/src/perf/pm_stub.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-confdefs.h -fPIE -DWASM_HUGE_MEMORY=1 -DIMPL_MFBT -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/mozjs-60/extract/js/src -Isrc/third_party/mozjs-60/extract/js/src -Ibuild/opt/third_party/mozjs-60/extract/mfbt -Isrc/third_party/mozjs-60/extract/mfbt -Ibuild/opt/third_party/mozjs-60/extract/intl/icu/source/common -Isrc/third_party/mozjs-60/extract/intl/icu/source/common -Ibuild/opt/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/include -Ibuild/opt/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/mongo_sources -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/build -Isrc/third_party/mozjs-60/platform/x86_64/linux/build -Ibuild/opt/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/mozjs-60/platform/x86_64/linux/include src/third_party/mozjs-60/extract/js/src/perf/pm_stub.cpp In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/include/js/RootingAPI.h:19, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/x64/MacroAssembler-x64.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:19, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h: In instantiation of 'T* js::jit::JitAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = JS::Value; Value = unsigned int; HashPolicy = js::jit::LIRGraph::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/jit/LIR.h:1893:37: required from here src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:101:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 101 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-60/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:20, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ 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/db/commands/libmongod_fcv.a build/opt/mongo/db/commands/feature_compatibility_version.o build/opt/mongo/db/commands/feature_compatibility_version_gen.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libmongod_fcv.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 g++ -o build/opt/third_party/s2/base/strtoint.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/boost-1.70.0 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/base/strtoint.cc In file included from src/third_party/mozjs-60/extract/js/src/jit/IonBuilder.cpp:34, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:38: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ 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/logging_mongo.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 ar rcsTD build/opt/mongo/client/libreplica_set_monitor_server_parameters.a build/opt/mongo/client/replica_set_monitor_server_parameters.o build/opt/mongo/client/replica_set_monitor_server_parameters_gen.o Skipping ranlib for thin archive build/opt/mongo/client/libreplica_set_monitor_server_parameters.a 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 g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/attribute_value_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/attribute_value_set.cpp In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/IonTypes.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:14, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-60/extract/js/src/jit/BaselineIC.h:12, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:22, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpShared.h:25, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-60/extract/js/src/jit/BaselineIC.h:12, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:22, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpShared.h:25, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-60/extract/js/src/jit/BaselineIC.h:12, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:22, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-60/extract/js/src/jit/BaselineIC.h:12, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:22, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/gc/WeakMap.h:18, from src/third_party/mozjs-60/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-60/extract/js/src/jit/BaselineIC.h:12, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:22, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineJIT.h:13, from src/third_party/mozjs-60/extract/js/src/jit/BaselineIC.h:15, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:22, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/dump.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/dump.cpp In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jspubtd.h:17, from src/third_party/mozjs-60/extract/js/src/jsapi.h:26, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineJIT.h:13, from src/third_party/mozjs-60/extract/js/src/jit/BaselineIC.h:15, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:22, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h: In instantiation of 'T* js::jit::JitAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = JS::Value; Value = unsigned int; HashPolicy = js::jit::LIRGraph::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/jit/LIR.h:1893:37: required from here src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:101:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 101 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-60/extract/js/src/jit/BaselineJIT.h:13, from src/third_party/mozjs-60/extract/js/src/jit/BaselineIC.h:15, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:22, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h: In instantiation of 'T* js::jit::JitAllocPolicy::maybe_pod_calloc(size_t) [with T = js::detail::HashTableEntry >; size_t = long unsigned int]': src/third_party/mozjs-60/include/js/HashTable.h:1239:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::jit::JitAllocPolicy>::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry >; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:1307:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::jit::JitAllocPolicy>::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/include/js/HashTable.h:91:65: required from 'bool js::HashMap::init(uint32_t) [with Key = unsigned int; Value = BoundsCheckInfo; HashPolicy = js::DefaultHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-60/extract/js/src/jit/IonAnalysis.cpp:3589:21: required from here src/third_party/mozjs-60/extract/js/src/jit/JitAllocPolicy.h:101:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 101 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-60/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.h:10, from src/third_party/mozjs-60/extract/js/src/jit/FoldLinearArithConstants.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'class js::detail::HashTableEntry >' declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/opt/third_party/boost-1.70.0/libs/log/src/named_scope.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-overloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_USE_COMPILER_TLS -DBOOST_LOG_USE_STD_REGEX -DBOOST_LOG_WITHOUT_DEFAULT_FACTORIES -DBOOST_LOG_WITHOUT_IPC -DBOOST_LOG_WITHOUT_SETTINGS_PARSERS -Isrc/third_party/boost-1.70.0 src/third_party/boost-1.70.0/libs/log/src/named_scope.cpp In file included from src/third_party/mozjs-60/extract/js/src/vm/TypeInference.cpp:40, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:47: src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h: In static member function 'static JS::Result js::NativeObject::create(JSContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-60/extract/js/src/vm/NativeObject-inl.h:562:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 562 | memset(nobj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:685:7: note: 'class js::HeapSlot' declared here 685 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:11, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::TabSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:11, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-60/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct JS::ServoSizes'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.h:20, from src/third_party/mozjs-60/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:19, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:11, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1290:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::StaticStrings'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/StringType.h:1272:7: note: 'class js::StaticStrings' declared here 1272 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:11, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gcstats::ZoneGCStats]': src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:80:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::gcstats::ZoneGCStats'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/GCRuntime.h:21, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:18, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/extract/js/src/gc/Statistics.h:52:8: note: 'struct js::gcstats::ZoneGCStats' declared here 52 | struct ZoneGCStats | ^~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:11, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:914:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::PreliminaryObjectArray'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpShared.h:25, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:18, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:902:7: note: 'class js::PreliminaryObjectArray' declared here 902 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:11, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:1045:39: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::TypeNewScript' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpShared.h:25, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:18, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:992:7: note: 'class js::TypeNewScript' declared here 992 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:11, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:708:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::IonScriptCounts'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:12, from src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23, from src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:18, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/IonCode.h:695:8: note: 'struct js::jit::IonScriptCounts' declared here 695 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:11, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-60/extract/js/src/vm/Caches.h:151:40: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::NewObjectCache'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/gc/ZoneGroup.h:11, from src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:30, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:18, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/Caches.h:102:7: note: 'class js::NewObjectCache' declared here 102 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:11, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = JS::Value; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:1159:21: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:15, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:11, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:620:25: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::jit::CodeOffsetJump'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-60/extract/js/src/jit/JitFrames.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSContext-inl.h:13, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment-inl.h:16, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:24, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/extract/js/src/jit/shared/Assembler-shared.h:598:7: note: 'class js::jit::CodeOffsetJump' declared here 598 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:11, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = js::TemporaryTypeSet; size_t = long unsigned int]': src/third_party/mozjs-60/extract/js/src/vm/TypeInference.cpp:1147:12: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::TemporaryTypeSet'; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/ObjectGroup.h:18, from src/third_party/mozjs-60/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-60/extract/js/src/vm/JSObject.h:17, from src/third_party/mozjs-60/extract/js/src/vm/NativeObject.h:22, from src/third_party/mozjs-60/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-60/extract/js/src/vm/RegExpShared.h:25, from src/third_party/mozjs-60/extract/js/src/gc/Zone.h:17, from src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:18, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/extract/js/src/vm/TypeInference.h:754:7: note: 'class js::TemporaryTypeSet' declared here 754 | class TemporaryTypeSet : public TypeSet | ^~~~~~~~~~~~~~~~ ar rcsTD build/opt/third_party/boost-1.70.0/libboost_log.a build/opt/third_party/boost-1.70.0/libs/log/src/attribute_name.o build/opt/third_party/boost-1.70.0/libs/log/src/attribute_set.o build/opt/third_party/boost-1.70.0/libs/log/src/attribute_value_set.o build/opt/third_party/boost-1.70.0/libs/log/src/code_conversion.o build/opt/third_party/boost-1.70.0/libs/log/src/core.o build/opt/third_party/boost-1.70.0/libs/log/src/date_time_format_parser.o build/opt/third_party/boost-1.70.0/libs/log/src/default_attribute_names.o build/opt/third_party/boost-1.70.0/libs/log/src/default_sink.o build/opt/third_party/boost-1.70.0/libs/log/src/dump.o build/opt/third_party/boost-1.70.0/libs/log/src/event.o build/opt/third_party/boost-1.70.0/libs/log/src/exceptions.o build/opt/third_party/boost-1.70.0/libs/log/src/format_parser.o build/opt/third_party/boost-1.70.0/libs/log/src/global_logger_storage.o build/opt/third_party/boost-1.70.0/libs/log/src/named_scope.o build/opt/third_party/boost-1.70.0/libs/log/src/named_scope_format_parser.o build/opt/third_party/boost-1.70.0/libs/log/src/once_block.o build/opt/third_party/boost-1.70.0/libs/log/src/permissions.o build/opt/third_party/boost-1.70.0/libs/log/src/process_id.o build/opt/third_party/boost-1.70.0/libs/log/src/process_name.o build/opt/third_party/boost-1.70.0/libs/log/src/record_ostream.o build/opt/third_party/boost-1.70.0/libs/log/src/severity_level.o build/opt/third_party/boost-1.70.0/libs/log/src/spirit_encoding.o build/opt/third_party/boost-1.70.0/libs/log/src/syslog_backend.o build/opt/third_party/boost-1.70.0/libs/log/src/text_file_backend.o build/opt/third_party/boost-1.70.0/libs/log/src/text_multifile_backend.o build/opt/third_party/boost-1.70.0/libs/log/src/text_ostream_backend.o build/opt/third_party/boost-1.70.0/libs/log/src/thread_id.o build/opt/third_party/boost-1.70.0/libs/log/src/thread_specific.o build/opt/third_party/boost-1.70.0/libs/log/src/threadsafe_queue.o build/opt/third_party/boost-1.70.0/libs/log/src/timer.o build/opt/third_party/boost-1.70.0/libs/log/src/timestamp.o build/opt/third_party/boost-1.70.0/libs/log/src/trivial.o Skipping ranlib for thin archive build/opt/third_party/boost-1.70.0/libboost_log.a ar rcsTD build/opt/mongo/db/pipeline/libexpression_context.a build/opt/mongo/db/pipeline/expression_context.o build/opt/mongo/db/pipeline/javascript_execution.o build/opt/mongo/db/pipeline/variables.o In file included from src/third_party/mozjs-60/include/js/TracingAPI.h:11, from src/third_party/mozjs-60/include/js/GCPolicyAPI.h:47, from src/third_party/mozjs-60/include/js/RootingAPI.h:22, from src/third_party/mozjs-60/include/js/CallArgs.h:73, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:15, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::EvalCacheEntry; HashPolicy = js::HashSet::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:447:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/Caches.h:263:28: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = mozilla::UniquePtr; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/vm/GeckoProfiler.h:162:26: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable >, js::HashMap, js::DefaultHasher, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libexpression_context.a src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = js::gc::Cell*; Value = long unsigned int; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/extract/js/src/gc/Zone.h:637:34: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/opt/mongo/db/free_mon/free_mon_commands_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/free_mon/free_mon_commands_gen.cpp src/third_party/mozjs-60/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::SystemAllocPolicy>::MapHashPolicy; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-60/include/js/HashTable.h:200:67: required from 'void js::HashMap::clear() [with Key = JSObject*; Value = unsigned int; HashPolicy = js::MovableCellHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-60/include/js/GCHashTable.h:188:47: required from 'void js::MutableWrappedPtrOperations, Wrapper>::clear() [with Wrapper = JS::Rooted, js::SystemAllocPolicy> >; Args = {JSObject*, unsigned int, js::MovableCellHasher, js::SystemAllocPolicy, JS::DefaultMapSweepPolicy}]' src/third_party/mozjs-60/extract/js/src/vm/StructuredClone.cpp:1807:17: required from here src/third_party/mozjs-60/include/js/HashTable.h:1674:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1674 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-60/include/js/HashTable.h:793:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 793 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:11, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:85:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:15, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:11, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 3]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:100:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:15, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:11, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/extract/js/src/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1016:45: required from 'js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Stack.h:1053:54: required from 'js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]' src/third_party/mozjs-60/extract/js/src/vm/Interpreter.h:119:31: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/extract/js/src/jsapi.h:29, from src/third_party/mozjs-60/extract/js/src/vm/StringType.h:15, from src/third_party/mozjs-60/extract/js/src/vm/StringType-inl.h:10, from src/third_party/mozjs-60/extract/js/src/vm/StringType.cpp:7, from src/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.cpp:2: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ ar rcsTD build/opt/mongo/db/query/libquery_knobs.a build/opt/mongo/db/query/query_knobs_gen.o Skipping ranlib for thin archive build/opt/mongo/db/query/libquery_knobs.a ar rcsTD build/opt/mongo/db/repl/librepl_server_parameters.a build/opt/mongo/db/repl/repl_server_parameters_gen.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librepl_server_parameters.a g++ -o build/opt/mongo/db/update/update_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/update_node.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_commands_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/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 g++ -o build/opt/mongo/db/query/datetime/init_timezone_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/timelib-2021.06 -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/datetime/init_timezone_data.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/update/update_array_node.h:39, from src/mongo/db/update/update_node.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call Using tempfile /usr/src/tmp/tmpnv6y4pu5.lnk for command line: ar rcsTD build/opt/third_party/mozjs-60/libmozjs.a build/opt/third_party/mozjs-60/mongo_sources/mongoErrorReportToString.o build/opt/third_party/mozjs-60/mongo_sources/freeOpToJSContext.o build/opt/third_party/mozjs-60/extract/js/src/builtin/RegExp.o build/opt/third_party/mozjs-60/extract/js/src/frontend/Parser.o build/opt/third_party/mozjs-60/extract/js/src/gc/StoreBuffer.o build/opt/third_party/mozjs-60/extract/js/src/jsarray.o build/opt/third_party/mozjs-60/extract/js/src/jsmath.o build/opt/third_party/mozjs-60/extract/js/src/mfbt/Unified_cpp_mfbt0.o build/opt/third_party/mozjs-60/extract/js/src/perf/pm_stub.o build/opt/third_party/mozjs-60/extract/js/src/util/DoubleToString.o build/opt/third_party/mozjs-60/extract/js/src/vm/Interpreter.o build/opt/third_party/mozjs-60/extract/js/src/vm/JSAtom.o build/opt/third_party/mozjs-60/extract/mfbt/Compression.o build/opt/third_party/mozjs-60/extract/mfbt/double-conversion/double-conversion/strtod.o build/opt/third_party/mozjs-60/extract/mfbt/lz4.o build/opt/third_party/mozjs-60/extract/mozglue/misc/Printf.o build/opt/third_party/mozjs-60/extract/mozglue/misc/TimeStamp.o build/opt/third_party/mozjs-60/extract/mozglue/misc/StackWalk.o build/opt/third_party/mozjs-60/extract/mozglue/misc/ConditionVariable_posix.o build/opt/third_party/mozjs-60/extract/mozglue/misc/Mutex_posix.o build/opt/third_party/mozjs-60/extract/mozglue/misc/TimeStamp_posix.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_acos.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_acosh.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_asin.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_atan2.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_atanh.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_cosh.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_exp.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_hypot.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_log.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_log10.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_log2.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_pow.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_sinh.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/e_sqrt.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/k_exp.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_asinh.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_atan.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_cbrt.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_ceil.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_ceilf.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_copysign.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_expm1.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_fabs.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_floor.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_floorf.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_log1p.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_nearbyint.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_rint.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_rintf.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_scalbn.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_tanh.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_trunc.o build/opt/third_party/mozjs-60/extract/modules/fdlibm/s_truncf.o build/opt/third_party/mozjs-60/extract/js/src/jit/x86-shared/Disassembler-x86-shared.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src0.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src1.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src10.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src11.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src12.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src13.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src14.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src15.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src16.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src17.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src18.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src19.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src2.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src20.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src21.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src22.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src23.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src24.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src25.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src26.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src27.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src28.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src29.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src3.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src30.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src31.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src32.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src33.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src34.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src35.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src36.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src37.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src38.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src39.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src4.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src40.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src41.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src42.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src43.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src44.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src45.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src5.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src6.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src7.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src8.o build/opt/third_party/mozjs-60/platform/x86_64/linux/build/Unified_cpp_js_src9.o ar @/usr/src/tmp/tmpnv6y4pu5.lnk Skipping ranlib for thin archive build/opt/third_party/mozjs-60/libmozjs.a src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/librollback_idl.a build/opt/mongo/db/repl/rollback_gen.o src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/repl/librollback_idl.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:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/executor/connection_pool_tl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/executor/connection_pool_tl.cpp g++ -o build/opt/mongo/db/storage/biggie/biggie_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/biggie/biggie_init.cpp g++ -o build/opt/mongo/s/balancer_configuration.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/balancer_configuration.cpp ar rcsTD build/opt/mongo/db/commands/libmap_reduce_agg.a build/opt/mongo/db/commands/map_reduce_agg.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libmap_reduce_agg.a g++ -o build/opt/mongo/db/mongod_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/mongod_options.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:42, from src/mongo/db/storage/biggie/biggie_init.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:42, from src/mongo/db/storage/biggie/biggie_init.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:42, from src/mongo/db/storage/biggie/biggie_init.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:42, from src/mongo/db/storage/biggie/biggie_init.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/mongo/s/balancer_configuration.cpp:38: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::constraint::failed() [with Model = boost::algorithm::FinderConcept, __gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:99:13: required from 'void boost::algorithm::find_format_all(SequenceT&, FinderT, FormatterT) [with SequenceT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::first_finderF; FormatterT = boost::algorithm::detail::const_formatF >]' src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:652:48: required from 'void boost::algorithm::replace_all(SequenceT&, const Range1T&, const Range2T&) [with SequenceT = std::__cxx11::basic_string; Range1T = boost::iterator_range; Range2T = boost::iterator_range]' src/third_party/boost-1.70.0/boost/date_time/time_facet.hpp:293:36: required from 'OutItrT boost::date_time::time_facet::put(OutItrT, std::ios_base&, boost::date_time::time_facet::char_type, const time_type&) const [with time_type = boost::posix_time::ptime; CharT = char; OutItrT = std::ostreambuf_iterator >; boost::date_time::time_facet::char_type = char]' src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time_io.hpp:52:58: required from 'std::basic_ostream<_CharT, _Traits>& boost::posix_time::operator<<(std::basic_ostream<_CharT, _Traits>&, const boost::posix_time::ptime&) [with CharT = char; TraitsT = std::char_traits]' src/mongo/s/balancer_configuration.cpp:402:15: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:47:52: warning: 'this' pointer is null [-Wnonnull] 47 | static void failed() { ((Model*)0)->constraints(); } | ~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:22, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/mongo/s/balancer_configuration.cpp:38: src/third_party/boost-1.70.0/boost/algorithm/string/concept.hpp:40:18: note: in a call to non-static member function 'void boost::algorithm::FinderConcept::constraints() [with FinderT = boost::algorithm::detail::first_finderF; IteratorT = __gnu_cxx::__normal_iterator >]' 40 | void constraints() | ^~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/mongo/s/balancer_configuration.cpp:38: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::constraint::failed() [with Model = boost::algorithm::FormatterConcept >, boost::algorithm::detail::first_finderF, __gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:104:13: required from 'void boost::algorithm::find_format_all(SequenceT&, FinderT, FormatterT) [with SequenceT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::first_finderF; FormatterT = boost::algorithm::detail::const_formatF >]' src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:652:48: required from 'void boost::algorithm::replace_all(SequenceT&, const Range1T&, const Range2T&) [with SequenceT = std::__cxx11::basic_string; Range1T = boost::iterator_range; Range2T = boost::iterator_range]' src/third_party/boost-1.70.0/boost/date_time/time_facet.hpp:293:36: required from 'OutItrT boost::date_time::time_facet::put(OutItrT, std::ios_base&, boost::date_time::time_facet::char_type, const time_type&) const [with time_type = boost::posix_time::ptime; CharT = char; OutItrT = std::ostreambuf_iterator >; boost::date_time::time_facet::char_type = char]' src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time_io.hpp:52:58: required from 'std::basic_ostream<_CharT, _Traits>& boost::posix_time::operator<<(std::basic_ostream<_CharT, _Traits>&, const boost::posix_time::ptime&) [with CharT = char; TraitsT = std::char_traits]' src/mongo/s/balancer_configuration.cpp:402:15: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:47:52: warning: 'this' pointer is null [-Wnonnull] 47 | static void failed() { ((Model*)0)->constraints(); } | ~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:22, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/mongo/s/balancer_configuration.cpp:38: src/third_party/boost-1.70.0/boost/algorithm/string/concept.hpp:65:18: note: in a call to non-static member function 'void boost::algorithm::FormatterConcept::constraints() [with FormatterT = boost::algorithm::detail::const_formatF >; FinderT = boost::algorithm::detail::first_finderF; IteratorT = __gnu_cxx::__normal_iterator >]' 65 | void constraints() | ^~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/mongo/s/balancer_configuration.cpp:38: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::constraint::failed() [with Model = boost::algorithm::FormatterConcept > > >, boost::algorithm::detail::first_finderF, __gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:104:13: required from 'void boost::algorithm::find_format_all(SequenceT&, FinderT, FormatterT) [with SequenceT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::first_finderF; FormatterT = boost::algorithm::detail::const_formatF > > >]' src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:652:48: required from 'void boost::algorithm::replace_all(SequenceT&, const Range1T&, const Range2T&) [with SequenceT = std::__cxx11::basic_string; Range1T = const char*; Range2T = std::__cxx11::basic_string]' src/third_party/boost-1.70.0/boost/date_time/time_facet.hpp:310:38: required from 'OutItrT boost::date_time::time_facet::put(OutItrT, std::ios_base&, boost::date_time::time_facet::char_type, const time_type&) const [with time_type = boost::posix_time::ptime; CharT = char; OutItrT = std::ostreambuf_iterator >; boost::date_time::time_facet::char_type = char]' src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time_io.hpp:52:58: required from 'std::basic_ostream<_CharT, _Traits>& boost::posix_time::operator<<(std::basic_ostream<_CharT, _Traits>&, const boost::posix_time::ptime&) [with CharT = char; TraitsT = std::char_traits]' src/mongo/s/balancer_configuration.cpp:402:15: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:47:52: warning: 'this' pointer is null [-Wnonnull] 47 | static void failed() { ((Model*)0)->constraints(); } | ~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:22, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/mongo/s/balancer_configuration.cpp:38: src/third_party/boost-1.70.0/boost/algorithm/string/concept.hpp:65:18: note: in a call to non-static member function 'void boost::algorithm::FormatterConcept::constraints() [with FormatterT = boost::algorithm::detail::const_formatF > > >; FinderT = boost::algorithm::detail::first_finderF; IteratorT = __gnu_cxx::__normal_iterator >]' 65 | void constraints() | ^~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/mongo/s/balancer_configuration.cpp:38: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::constraint::failed() [with Model = boost::algorithm::FormatterConcept, boost::algorithm::detail::first_finderF, __gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:104:13: required from 'void boost::algorithm::find_format_all(SequenceT&, FinderT, FormatterT) [with SequenceT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::first_finderF; FormatterT = boost::algorithm::detail::empty_formatF]' src/third_party/boost-1.70.0/boost/algorithm/string/erase.hpp:593:48: required from 'void boost::algorithm::erase_all(SequenceT&, const RangeT&) [with SequenceT = std::__cxx11::basic_string; RangeT = const char*]' src/third_party/boost-1.70.0/boost/date_time/time_facet.hpp:321:38: required from 'OutItrT boost::date_time::time_facet::put(OutItrT, std::ios_base&, boost::date_time::time_facet::char_type, const time_type&) const [with time_type = boost::posix_time::ptime; CharT = char; OutItrT = std::ostreambuf_iterator >; boost::date_time::time_facet::char_type = char]' src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time_io.hpp:52:58: required from 'std::basic_ostream<_CharT, _Traits>& boost::posix_time::operator<<(std::basic_ostream<_CharT, _Traits>&, const boost::posix_time::ptime&) [with CharT = char; TraitsT = std::char_traits]' src/mongo/s/balancer_configuration.cpp:402:15: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:47:52: warning: 'this' pointer is null [-Wnonnull] 47 | static void failed() { ((Model*)0)->constraints(); } | ~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:22, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/mongo/s/balancer_configuration.cpp:38: src/third_party/boost-1.70.0/boost/algorithm/string/concept.hpp:65:18: note: in a call to non-static member function 'void boost::algorithm::FormatterConcept::constraints() [with FormatterT = boost::algorithm::detail::empty_formatF; FinderT = boost::algorithm::detail::first_finderF; IteratorT = __gnu_cxx::__normal_iterator >]' 65 | void constraints() | ^~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/mongo/s/balancer_configuration.cpp:38: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::constraint::failed() [with Model = boost::algorithm::FinderConcept >, boost::algorithm::is_equal>, __gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:99:13: required from 'void boost::algorithm::find_format_all(SequenceT&, FinderT, FormatterT) [with SequenceT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::first_finderF<__gnu_cxx::__normal_iterator >, boost::algorithm::is_equal>; FormatterT = boost::algorithm::detail::empty_formatF]' src/third_party/boost-1.70.0/boost/algorithm/string/erase.hpp:593:48: required from 'void boost::algorithm::erase_all(SequenceT&, const RangeT&) [with SequenceT = std::__cxx11::basic_string; RangeT = std::__cxx11::basic_string]' src/third_party/boost-1.70.0/boost/date_time/time_facet.hpp:339:38: required from 'OutItrT boost::date_time::time_facet::put(OutItrT, std::ios_base&, boost::date_time::time_facet::char_type, const time_type&) const [with time_type = boost::posix_time::ptime; CharT = char; OutItrT = std::ostreambuf_iterator >; boost::date_time::time_facet::char_type = char]' src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time_io.hpp:52:58: required from 'std::basic_ostream<_CharT, _Traits>& boost::posix_time::operator<<(std::basic_ostream<_CharT, _Traits>&, const boost::posix_time::ptime&) [with CharT = char; TraitsT = std::char_traits]' src/mongo/s/balancer_configuration.cpp:402:15: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:47:52: warning: 'this' pointer is null [-Wnonnull] 47 | static void failed() { ((Model*)0)->constraints(); } | ~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:22, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/mongo/s/balancer_configuration.cpp:38: src/third_party/boost-1.70.0/boost/algorithm/string/concept.hpp:40:18: note: in a call to non-static member function 'void boost::algorithm::FinderConcept::constraints() [with FinderT = boost::algorithm::detail::first_finderF<__gnu_cxx::__normal_iterator >, boost::algorithm::is_equal>; IteratorT = __gnu_cxx::__normal_iterator >]' 40 | void constraints() | ^~~~~~~~~~~ In file included from src/third_party/boost-1.70.0/boost/concept/assert.hpp:35, from src/third_party/boost-1.70.0/boost/concept_check.hpp:20, from src/third_party/boost-1.70.0/boost/range/concepts.hpp:19, from src/third_party/boost-1.70.0/boost/range/size_type.hpp:20, from src/third_party/boost-1.70.0/boost/range/size.hpp:21, from src/third_party/boost-1.70.0/boost/range/functions.hpp:20, from src/third_party/boost-1.70.0/boost/range/iterator_range_core.hpp:38, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/mongo/s/balancer_configuration.cpp:38: src/third_party/boost-1.70.0/boost/concept/detail/general.hpp: In instantiation of 'static void boost::concepts::constraint::failed() [with Model = boost::algorithm::FormatterConcept, boost::algorithm::detail::first_finderF<__gnu_cxx::__normal_iterator >, boost::algorithm::is_equal>, __gnu_cxx::__normal_iterator > >]': src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:104:13: required from 'void boost::algorithm::find_format_all(SequenceT&, FinderT, FormatterT) [with SequenceT = std::__cxx11::basic_string; FinderT = boost::algorithm::detail::first_finderF<__gnu_cxx::__normal_iterator >, boost::algorithm::is_equal>; FormatterT = boost::algorithm::detail::empty_formatF]' src/third_party/boost-1.70.0/boost/algorithm/string/erase.hpp:593:48: required from 'void boost::algorithm::erase_all(SequenceT&, const RangeT&) [with SequenceT = std::__cxx11::basic_string; RangeT = std::__cxx11::basic_string]' src/third_party/boost-1.70.0/boost/date_time/time_facet.hpp:339:38: required from 'OutItrT boost::date_time::time_facet::put(OutItrT, std::ios_base&, boost::date_time::time_facet::char_type, const time_type&) const [with time_type = boost::posix_time::ptime; CharT = char; OutItrT = std::ostreambuf_iterator >; boost::date_time::time_facet::char_type = char]' src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time_io.hpp:52:58: required from 'std::basic_ostream<_CharT, _Traits>& boost::posix_time::operator<<(std::basic_ostream<_CharT, _Traits>&, const boost::posix_time::ptime&) [with CharT = char; TraitsT = std::char_traits]' src/mongo/s/balancer_configuration.cpp:402:15: required from here src/third_party/boost-1.70.0/boost/concept/detail/general.hpp:47:52: warning: 'this' pointer is null [-Wnonnull] 47 | static void failed() { ((Model*)0)->constraints(); } | ~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from src/third_party/boost-1.70.0/boost/algorithm/string/find_format.hpp:22, from src/third_party/boost-1.70.0/boost/algorithm/string/replace.hpp:22, from src/third_party/boost-1.70.0/boost/date_time/date_facet.hpp:17, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian_io.hpp:16, from src/third_party/boost-1.70.0/boost/date_time/gregorian/gregorian.hpp:31, from src/third_party/boost-1.70.0/boost/date_time/posix_time/time_formatters.hpp:12, from src/third_party/boost-1.70.0/boost/date_time/posix_time/posix_time.hpp:24, from src/mongo/s/balancer_configuration.cpp:38: src/third_party/boost-1.70.0/boost/algorithm/string/concept.hpp:65:18: note: in a call to non-static member function 'void boost::algorithm::FormatterConcept::constraints() [with FormatterT = boost::algorithm::detail::empty_formatF; FinderT = boost::algorithm::detail::first_finderF<__gnu_cxx::__normal_iterator >, boost::algorithm::is_equal>; IteratorT = __gnu_cxx::__normal_iterator >]' 65 | void constraints() | ^~~~~~~~~~~ ar rcsTD build/opt/mongo/db/libmongod_options.a build/opt/mongo/db/mongod_options.o build/opt/mongo/db/mongod_options_general_gen.o build/opt/mongo/db/mongod_options_legacy_gen.o build/opt/mongo/db/mongod_options_replication_gen.o build/opt/mongo/db/mongod_options_sharding_gen.o build/opt/mongo/db/mongod_options_storage_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libmongod_options.a ar rcsTD build/opt/third_party/libshim_abseil.a build/opt/third_party/shim_abseil.o Skipping ranlib for thin archive build/opt/third_party/libshim_abseil.a ar rcsTD build/opt/mongo/db/pipeline/process_interface/libmongo_process_interface.a build/opt/mongo/db/pipeline/process_interface/mongo_process_interface.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/process_interface/libmongo_process_interface.a 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 g++ -o build/opt/mongo/s/write_ops/cluster_write.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/write_ops/cluster_write.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/s/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 /usr/bin/python3 src/mongo/db/fts/unicode/gen_diacritic_list.py src/third_party/unicode-8.0.0/PropList.txt build/opt/mongo/db/fts/unicode/codepoints_diacritic_list.cpp g++ -o build/opt/mongo/db/fts/unicode/codepoints_diacritic_list.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/fts/unicode/codepoints_diacritic_list.cpp g++ -o build/opt/mongo/db/index/expression_params.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index/expression_params.cpp 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 g++ -o build/opt/mongo/scripting/utils.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/utils.cpp ar rcsTD build/opt/mongo/db/storage/biggie/libstorage_biggie.a build/opt/mongo/db/storage/biggie/biggie_init.o Skipping ranlib for thin archive build/opt/mongo/db/storage/biggie/libstorage_biggie.a 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/blocking_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 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 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 Generating build/opt/mongo/db/query/hint_gen.cpp g++ -o build/opt/mongo/db/query/hint_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/query/hint_gen.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 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 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 ar rcsTD build/opt/mongo/db/storage/devnull/libstorage_devnull.a build/opt/mongo/db/storage/devnull/devnull_init.o Skipping ranlib for thin archive build/opt/mongo/db/storage/devnull/libstorage_devnull.a ar rcsTD build/opt/mongo/db/commands/libserver_status_servers.a build/opt/mongo/db/commands/server_status_servers.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libserver_status_servers.a 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 g++ -o build/opt/mongo/db/repl/topology_coordinator_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/repl/topology_coordinator_gen.cpp g++ -o build/opt/mongo/db/catalog/multi_index_block.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/multi_index_block.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/hint_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/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 g++ -o build/opt/mongo/db/commands/profile_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands/profile_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/hint_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/topology_coordinator_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/hint_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/hint_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/topology_coordinator_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/topology_coordinator_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/topology_coordinator_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/commands/profile_common.h:35, from build/opt/mongo/db/commands/profile_gen.h:21, from build/opt/mongo/db/commands/profile_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/commands/profile_common.h:35, from build/opt/mongo/db/commands/profile_gen.h:21, from build/opt/mongo/db/commands/profile_gen.cpp:9: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/multi_index_block.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/multi_index_block.cpp:40: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/multi_index_block.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/multi_index_block.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/commands/profile_common.h:35, from build/opt/mongo/db/commands/profile_gen.h:21, from build/opt/mongo/db/commands/profile_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/commands/profile_common.h:35, from build/opt/mongo/db/commands/profile_gen.h:21, from build/opt/mongo/db/commands/profile_gen.cpp:9: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/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 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/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 g++ -o build/opt/mongo/db/time_proof_service.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/time_proof_service.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/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/query/libhint_parser.a build/opt/mongo/db/query/hint_parser.o build/opt/mongo/db/query/hint_gen.o Skipping ranlib for thin archive build/opt/mongo/db/query/libhint_parser.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/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 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 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_gen.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librepl_settings.a ar rcsTD build/opt/mongo/db/libmirror_maestro.a build/opt/mongo/db/mirror_maestro.o build/opt/mongo/db/mirror_maestro_gen.o build/opt/mongo/db/mirroring_sampler.o Skipping ranlib for thin archive build/opt/mongo/db/libmirror_maestro.a ar rcsTD build/opt/mongo/executor/libtask_executor_pool.a build/opt/mongo/executor/task_executor_pool.o build/opt/mongo/executor/task_executor_pool_parameters_gen.o Skipping ranlib for thin archive build/opt/mongo/executor/libtask_executor_pool.a 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 ar rcsTD build/opt/mongo/db/exec/document_value/libdocument_value.a build/opt/mongo/db/exec/document_value/document.o build/opt/mongo/db/exec/document_value/document_comparator.o build/opt/mongo/db/exec/document_value/document_metadata_fields.o build/opt/mongo/db/exec/document_value/value.o build/opt/mongo/db/exec/document_value/value_comparator.o Skipping ranlib for thin archive build/opt/mongo/db/exec/document_value/libdocument_value.a 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 g++ -o build/opt/mongo/scripting/deadline_monitor_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/scripting/deadline_monitor_gen.cpp ar rcsTD build/opt/mongo/db/libtime_proof_service.a build/opt/mongo/db/time_proof_service.o Skipping ranlib for thin archive build/opt/mongo/db/libtime_proof_service.a 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 g++ -o build/opt/mongo/db/read_write_concern_defaults_cache_lookup_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/read_write_concern_defaults_cache_lookup_mongod.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/commands/libprofile_common.a build/opt/mongo/db/commands/profile_common.o build/opt/mongo/db/commands/profile_gen.o build/opt/mongo/db/profile_filter_impl.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libprofile_common.a 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 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 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 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 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 ar rcsTD build/opt/mongo/db/repl/libtopology_coordinator.a build/opt/mongo/db/repl/heartbeat_response_action.o build/opt/mongo/db/repl/topology_coordinator.o build/opt/mongo/db/repl/topology_coordinator_gen.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libtopology_coordinator.a g++ -o build/opt/mongo/rpc/metadata/config_server_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/metadata/config_server_metadata.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/scripting/deadline_monitor_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/scripting/deadline_monitor_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/scripting/deadline_monitor_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/scripting/deadline_monitor_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/rpc/metadata/config_server_metadata.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/catalog/libmulti_index_block.a build/opt/mongo/db/catalog/multi_index_block.o build/opt/mongo/db/catalog/multi_index_block_gen.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libmulti_index_block.a 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 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/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/db/matcher/libexpressions_mongod_only.a ar rcsTD build/opt/mongo/db/ftdc/libftdc_server.a build/opt/mongo/db/ftdc/ftdc_server.o build/opt/mongo/db/ftdc/ftdc_server_gen.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 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/util/libregex_util.a build/opt/mongo/util/regex_util.o Skipping ranlib for thin archive build/opt/mongo/util/libregex_util.a g++ -o build/opt/mongo/db/catalog/index_build_entry_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/catalog/index_build_entry_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/rpc/metadata/config_server_metadata.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/libboost_assert_shim.a build/opt/mongo/util/boost_assert_shim.o Skipping ranlib for thin archive build/opt/mongo/libboost_assert_shim.a 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/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 ar rcsTD build/opt/mongo/db/storage/libbackup_cursor_hooks.a build/opt/mongo/db/storage/backup_cursor_hooks.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libbackup_cursor_hooks.a 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_executor.o build/opt/mongo/db/update/pipeline_executor.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 Skipping ranlib for thin archive build/opt/mongo/db/update/libupdate.a 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 ar rcsTD build/opt/mongo/db/commands/libmap_reduce_parser.a build/opt/mongo/db/commands/map_reduce_out_options.o build/opt/mongo/db/commands/map_reduce_gen.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libmap_reduce_parser.a ar rcsTD build/opt/mongo/db/libkeys_collection_manager.a build/opt/mongo/db/keys_collection_manager_gen.o 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/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 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/db/libprepare_conflict_tracker.a build/opt/mongo/db/prepare_conflict_tracker.o Skipping ranlib for thin archive build/opt/mongo/db/libprepare_conflict_tracker.a ar rcsTD build/opt/mongo/db/repl/libreplication_metrics.a build/opt/mongo/db/repl/replication_metrics.o build/opt/mongo/db/repl/replication_metrics_gen.o src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/repl/libreplication_metrics.a src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/rpc/metadata/config_server_metadata.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:34, from src/mongo/rpc/metadata/config_server_metadata.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call Generating build/opt/mongo/shell/kms_gen.cpp g++ -o build/opt/mongo/crypto/aead_encryption.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/crypto/aead_encryption.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/index_build_entry_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/index_build_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/shell/kms_shell.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/shell/kms_shell.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:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/index_build_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/index_build_entry_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/scripting/libscripting_common.a build/opt/mongo/scripting/deadline_monitor.o build/opt/mongo/scripting/deadline_monitor_gen.o build/opt/mongo/scripting/dbdirectclient_factory.o build/opt/mongo/scripting/engine.o build/opt/mongo/scripting/jsexception.o build/opt/mongo/scripting/utils.o Skipping ranlib for thin archive build/opt/mongo/scripting/libscripting_common.a g++ -o build/opt/mongo/crypto/symmetric_crypto.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/crypto/symmetric_crypto.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 build/opt/mongo/rpc/topology_version_gen.o Skipping ranlib for thin archive build/opt/mongo/rpc/libmetadata.a g++ -o build/opt/mongo/shell/mk_wcwidth.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/shell/mk_wcwidth.cpp g++ -o build/opt/mongo/shell/kms_local.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/kms-message/src -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/shell/kms_local.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/shell/libkms_shell.a build/opt/mongo/shell/kms_shell.o Skipping ranlib for thin archive build/opt/mongo/shell/libkms_shell.a g++ -o build/opt/mongo/base/environment_buffer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/environment_buffer.cpp ar rcsTD build/opt/mongo/base/libenvironment_buffer.a build/opt/mongo/base/environment_buffer.o Skipping ranlib for thin archive build/opt/mongo/base/libenvironment_buffer.a g++ -o build/opt/mongo/shell/kms_gcp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/kms-message/src -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/shell/kms_gcp.cpp g++ -o build/opt/mongo/shell/linenoise.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/shell/linenoise.cpp ar rcsTD build/opt/mongo/libshell_core.a build/opt/mongo/shell/linenoise.o build/opt/mongo/shell/mk_wcwidth.o Skipping ranlib for thin archive build/opt/mongo/libshell_core.a g++ -o build/opt/mongo/shell/shell_utils_launcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/shell/shell_utils_launcher.cpp g++ -o build/opt/mongo/shell/shell_utils.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/shell/shell_utils.cpp ar rcsTD build/opt/mongo/db/catalog/libindex_build_entry_idl.a build/opt/mongo/db/catalog/index_build_entry_gen.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libindex_build_entry_idl.a Using tempfile /usr/src/tmp/tmpk8t1bs95.lnk for command line: g++ -o build/opt/mongo/mongod -pthread -Wl,-z,now -rdynamic -fstack-protector-strong -fuse-ld=gold -Wl,--no-threads -Wl,--build-id -Wl,--hash-style=gnu -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro -pie build/opt/mongo/db/db.o build/opt/mongo/db/logical_session_cache_factory_mongod.o build/opt/mongo/db/read_write_concern_defaults_cache_lookup_mongod.o -Wl,--whole-archive build/opt/mongo/watchdog/libwatchdog_mongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/watchdog/libwatchdog_register.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/watchdog/libwatchdog.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/net/libhttp_client_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libalarm.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/util/libtesting_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libtcmalloc_set_parameter.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/liblatch_analyzer.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/transport/libmessage_compressor_options_server.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/util/net/libssl_options_server.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/wiredtiger/libstorage_wiredtiger.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/wiredtiger/libstorage_wiredtiger_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_wiredtiger.a -Wl,--no-whole-archive build/opt/third_party/wiredtiger/libwiredtiger.a -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/wiredtiger/liboplog_stone_parameters.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/devnull/libstorage_devnull.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/storage/biggie/libstorage_biggie.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/biggie/libstorage_biggie_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/s/libsharding_commands_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/s/libsessions_collection_config_server.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libsessions_collection_sharded.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/repl/libstorage_interface_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/liboplog_cap_maintainer_thread.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/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/libspeculative_authenticate.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/repl/librepl_set_status_commands.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/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/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/repl/libreplication_metrics.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/libelection_reason_counter_parser.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libelection_reason_counter.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/liboplog_buffer_blocking_queue.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboplog_application_interface.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/libinitial_sync_cloners.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/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/libreplication_auth.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libmember_data.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libinitial_sync_shared_data.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/libsessions_collection_standalone.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/libservice_liaison_mongod.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/librepair_database_and_check_version.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libdowngraded_unique_indexes.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/libread_concern_d_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libperiodic_runner_job_decrease_snapshot_cache_pressure.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libsnapshot_window_util.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libsnapshot_window_options.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/libmirror_maestro.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libtopology_version_observer.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libclient_out_of_line_executor.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/db/libinitialize_snmp.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libinitialize_server_security_state.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libssl_parameters_auth.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libserverinit.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/auth/libsecurity_file.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/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_runtime_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/query/libcluster_aggregate.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/process_interface/libmongos_process_interface.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/client/libremote_command_targeter.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/s/client/libshard_local.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/s/libtransaction_coordinator.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/s/libbalancer.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/s/libsharding_runtime_d_params.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/s/libsharding_logging.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/s/libchunk_splitter.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/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/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/librename_collection_idl.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/catalog/libcollection_validation.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/libset_index_commit_quorum_idl.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/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/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/libmap_reduce_agg.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libmap_reduce_output_format.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/process_interface/libmongod_process_interface_factory.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/process_interface/libshardsvr_process_interface.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/db/pipeline/libsharded_agg_helpers.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/query/libasync_results_merger.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/catalog/libdist_lock_manager.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/pipeline/process_interface/libmongod_process_interfaces.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libbackup_cursor_hooks.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/process_interface/libcommon_process_interface.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/libcurop_metrics.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libindex_builds_coordinator_mongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/process_interface/libmongo_process_interface.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/s/libsharding_legacy_api.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libsharding_router_api.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/libhedge_options_util.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/executor/libscoped_task_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libshared_request_handling.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/s/libcoreshard.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/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/db/libclient_metadata_propagation_egress_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/db/libtraffic_recorder.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libread_write_concern_defaults.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/commands/libmap_reduce_parser.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/liboperation_killer.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/db/liblogical_session_cache_impl.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/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/libstorage_engine_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libtwo_phase_index_build_knobs_idl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libcatalog_control.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/librebuild_indexes.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/libstorage_engine_lock_file.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libstorage_control.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libstorage_debug_util.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libdurable_catalog_impl.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/kv/libkv_drop_pending_ident_reaper.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/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/commands/libfeature_compatibility_parsers.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/libtransaction.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/stats/libtransaction_stats.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librepl_server_parameters.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libsession_catalog.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libtxn_cmd_request.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/index/libindex_access_method_factory.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libvalidate_state.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libthrottle_cursor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libvalidate_idl.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/libindex_builds_coordinator_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libtimestamp_block.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libindex_build_entry_helpers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libindex_builds_manager.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/storage/libjournal_flusher.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libindex_build_oplog_entry.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libindex_build_entry_idl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libcommit_quorum_idl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libcommit_quorum_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libmulti_index_block.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libindex_build_block.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/index/libindex_build_interceptor.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/index/libduplicate_key_tracker.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libindex_timestamp_helper.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/libcollection_catalog_helper.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/repl/libimage_collection_entry.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/libremove_saver.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/stats/libfill_locker_info.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/libdistinct_command_idl.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_factory_icu.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/ops/libparsed_update.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/db/libkill_sessions.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/catalog/libcollection_query_info.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/index/libindex_access_method.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/libduplicate_key_error_info.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/index/libskipped_record_tracker.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/liblasterror.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/storage/libsnapshot_helper.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/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/pipeline/libaggregation.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liblocal_oplog_info.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libflow_control.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libflow_control_parameters.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/libmongod_options.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/libserver_options_servers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libserver_options_base.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/auth/libauthservercommon.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libauthentication_commands.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/libsasl_options_init.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/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/pipeline/libpipeline.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/repl/libspeculative_majority_read_info.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/libexpression_javascript.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/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/liberror_labels.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/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/libcurop_failpoint_helpers.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/util/libdiagnostic_info.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/libprepare_conflict_tracker.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/db/libcommands.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/libbackground.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/exec/libsort_executor.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/exec/libscoped_timer.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/auth/libauth_options.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/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/db/auth/libauth_op_observer.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/s/libchunk_writes_tracker.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/query/libquery_planner.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/query/libsort_pattern.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libprojection_ast.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libdocument_path_support.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 -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/exec/libworking_set.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/exec/libprojection_executor.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/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/util/libregex_util.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/scripting/libscripting.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_mozjs.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/mozjs-60/libmozjs.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/scripting/libbson_template_evaluator.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/db/stats/libcounters.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/executor/libhedging_metrics.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/transport/libmessage_compressor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_zstd.a -Wl,--no-whole-archive build/opt/third_party/zstandard-1.4.3/libzstd.a -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/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/libnetwork_interface.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/client/sdam/libsdam.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/client/sdam/libsdam_configuration_parameters.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libreplica_set_monitor_server_parameters.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/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/libsocket.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libopenssl_init.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/libcaching.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/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/client/libsasl_client.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/executor/libremote_command.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libsasl_aws_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_kms_message.a -Wl,--no-whole-archive build/opt/third_party/kms-message/libkms-message.a -Wl,--whole-archive build/opt/mongo/client/libsasl_aws_common.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/db/query/libquery_knobs.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/librpc.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/librewrite_state_change_errors.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libprotocol.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/wiredtiger/libwiredtiger_checksum.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/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/util/libprocessinfo.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/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/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/auth/libauthprivilege.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libmetadata_impersonated_user.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/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/client/libread_preference.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/ops/libwrite_ops_parsers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libhint_parser.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libdbmessage.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/pipeline/libdocument_sources_idl.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/s/libmongos_server_parameters.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/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/db/pipeline/libruntime_constants_idl.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/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/exec/document_value/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-2021.06/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/geo/libgeoparser.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/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/libcommon.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/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/libbackground_job.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/concurrency/libflow_control_ticketholder.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libcollection_catalog.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libprofile_filter.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/util/liblog_and_backoff.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/libop_observer_util.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/index/libindex_descriptor.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/repl/liboptime_base.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/commands/libtest_commands_enabled.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/catalog/libindex_catalog_entry.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/catalog/libcollection_options.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/auth/libauth.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/libclock_sources.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/storage/librecovery_unit_base.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/db/libwrite_concern_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libread_write_concern_provenance.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/db/libmulti_key_path_tracker.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/liblogical_session_id.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/idl/libserver_parameter.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/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/db/libserver_options_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libhttp_client.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/commands/libserver_status_core.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/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_unwind.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/unwind/libunwind.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_fmt.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/fmt/libfmt.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_boost.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/boost-1.70.0/libboost_program_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/boost-1.70.0/libboost_log.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/boost-1.70.0/libboost_thread.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/boost-1.70.0/libboost_iostreams.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/boost-1.70.0/libboost_filesystem.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/boost-1.70.0/libboost_system.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_abseil.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/abseil-cpp-master/libabsl_container.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/abseil-cpp-master/libabsl_throw_delegate.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/abseil-cpp-master/libabsl_hash.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,--whole-archive build/opt/mongo/stdx/libstdx.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/libboost_assert_shim.a -Wl,--no-whole-archive -lcurl -llzma -lstemmer -lz -lsnappy -lsasl2 -lyaml-cpp -llzma -lpcre -lpcrecpp -ltcmalloc -lm -lresolv -lcrypto -lssl -lcrypto -ldl -llzma -lrt -ldl g++ @/usr/src/tmp/tmpk8t1bs95.lnk g++ -o build/opt/mongo/shell/shell_utils_extended.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/shell/shell_utils_extended.cpp /usr/bin/python3 site_scons/site_tools/jstoh.py build/opt/mongo/shell/mongo-server.cpp src/mongo/shell/servers.js src/mongo/shell/shardingtest.js src/mongo/shell/servers_misc.js src/mongo/shell/replsettest.js src/mongo/shell/data_consistency_checker.js src/mongo/shell/bridge.js src/mongo/shell/keyvault.js src/mongo/shell/feature_compatibility_version.js g++ -o build/opt/mongo/shell/mongo-server.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/shell/mongo-server.cpp Generating build/opt/mongo/transport/message_compressor_options_client_gen.cpp g++ -o build/opt/mongo/shell/shell_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/shell/shell_options.cpp Generating build/opt/mongo/shell/fle_shell_options_gen.cpp g++ -o build/opt/mongo/shell/fle_shell_options_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/shell/fle_shell_options_gen.cpp g++ -o build/opt/mongo/shell/encrypted_dbclient_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -Wno-non-virtual-dtor -Wno-invalid-offsetof -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -include js-config.h -include js/RequiredDefines.h -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/mozjs-60/include -Isrc/third_party/mozjs-60/mongo_sources -Isrc/third_party/mozjs-60/platform/x86_64/linux/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/shell/encrypted_dbclient_base.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/shell/fle_shell_options_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/shell/encrypted_dbclient_base.h:39, from src/mongo/shell/encrypted_dbclient_base.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/shell/fle_shell_options_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/shell/fle_shell_options_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/shell/fle_shell_options_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/shell/encrypted_dbclient_base.h:39, from src/mongo/shell/encrypted_dbclient_base.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/shell/encrypted_dbclient_base.h:39, from src/mongo/shell/encrypted_dbclient_base.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/shell/encrypted_dbclient_base.h:39, from src/mongo/shell/encrypted_dbclient_base.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/shell/libshell_utils.a build/opt/mongo/shell/mongo-server.o build/opt/mongo/shell/shell_options.o build/opt/mongo/shell/shell_utils.o build/opt/mongo/shell/shell_utils_extended.o build/opt/mongo/shell/shell_utils_launcher.o Skipping ranlib for thin archive build/opt/mongo/shell/libshell_utils.a g++ -o build/opt/mongo/shell/kms_network.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/kms-message/src -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/shell/kms_network.cpp src/mongo/shell/encrypted_dbclient_base.cpp: In function 'std::unique_ptr mongo::{anonymous}::createEncryptedDBClientBase(std::unique_ptr, JS::HandleValue, JS::HandleObject, JSContext*)': src/mongo/shell/encrypted_dbclient_base.cpp:778:21: warning: redundant move in return statement [-Wredundant-move] 778 | return std::move(base); | ~~~~~~~~~^~~~~~ src/mongo/shell/encrypted_dbclient_base.cpp:778:21: note: remove 'std::move' call In file included from src/mongo/shell/encrypted_dbclient_base.h:56, from src/mongo/shell/encrypted_dbclient_base.cpp:32: src/mongo/util/lru_cache.h: In instantiation of 'boost::optional > mongo::LRUCache::add(const K&, V) [with K = mongo::UUID; V = std::pair, mongo::Date_t>; Hash = mongo::UUID::Hash; KeyEqual = std::equal_to]': src/mongo/shell/encrypted_dbclient_base.cpp:625:22: required from here src/mongo/util/lru_cache.h:108:34: warning: redundant move in return statement [-Wredundant-move] 108 | return std::move(pair); | ^ src/mongo/util/lru_cache.h:108:34: note: remove 'std::move' call In file included from src/third_party/mozjs-60/include/jspubtd.h:17, from src/third_party/mozjs-60/include/jsapi.h:26, from src/mongo/scripting/mozjs/wraptype.h:33, from src/mongo/scripting/mozjs/bindata.h:32, from src/mongo/shell/encrypted_dbclient_base.h:44, from src/mongo/shell/encrypted_dbclient_base.cpp:32: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]': src/third_party/mozjs-60/include/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 2]' src/mongo/shell/encrypted_dbclient_base.cpp:469:33: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/jsapi.h:29, from src/mongo/scripting/mozjs/wraptype.h:33, from src/mongo/scripting/mozjs/bindata.h:32, from src/mongo/shell/encrypted_dbclient_base.h:44, from src/mongo/shell/encrypted_dbclient_base.cpp:32: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ In file included from src/third_party/mozjs-60/include/jspubtd.h:17, from src/third_party/mozjs-60/include/jsapi.h:26, from src/mongo/scripting/mozjs/wraptype.h:33, from src/mongo/scripting/mozjs/bindata.h:32, from src/mongo/shell/encrypted_dbclient_base.h:44, from src/mongo/shell/encrypted_dbclient_base.cpp:32: src/third_party/mozjs-60/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]': src/third_party/mozjs-60/include/jsapi.h:85:30: required from 'JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int N = 4]' src/mongo/shell/encrypted_dbclient_base.cpp:691:44: required from here src/third_party/mozjs-60/include/mozilla/PodOperations.h:67:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JS::Value'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(aT, 0, N * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-60/include/js/CallArgs.h:74, from src/third_party/mozjs-60/include/jsapi.h:29, from src/mongo/scripting/mozjs/wraptype.h:33, from src/mongo/scripting/mozjs/bindata.h:32, from src/mongo/shell/encrypted_dbclient_base.h:44, from src/mongo/shell/encrypted_dbclient_base.cpp:32: src/third_party/mozjs-60/include/js/Value.h:324:32: note: 'class JS::Value' declared here 324 | class MOZ_NON_PARAM alignas(8) Value | ^~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/shell/encrypted_dbclient_base.h:39, from src/mongo/shell/encrypted_dbclient_base.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/traffic_reader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/traffic_reader.cpp g++ -o build/opt/mongo/shell/kms_azure.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/kms-message/src -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/shell/kms_azure.cpp Generating build/opt/mongo/util/password_params_gen.cpp g++ -o build/opt/mongo/util/password_params_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/util/password_params_gen.cpp ar rcsTD build/opt/mongo/shell/libencrypted_dbclient.a build/opt/mongo/shell/encrypted_dbclient_base.o build/opt/mongo/shell/fle_shell_options_gen.o Skipping ranlib for thin archive build/opt/mongo/shell/libencrypted_dbclient.a g++ -o build/opt/mongo/shell/kms.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/kms-message/src -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/shell/kms.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/util/password_params_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/password_params_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/shell/kms_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/kms-message/src -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/shell/kms_gen.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/password_params_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/password_params_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/shell/kms_aws.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DKMS_MSG_STATIC -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/kms-message/src -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/shell/kms_aws.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/shell/kms_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/shell/kms_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/shell/kms_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/shell/kms_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/crypto/symmetric_key.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/crypto/symmetric_key.cpp src/third_party/icu4c-57.1/source/common/unicode/utypes.h:476: warning: type 'UErrorCode' violates the C++ One Definition Rule [-Wodr] 476 | typedef enum UErrorCode { | src/third_party/mozjs-60/extract/js/src/builtin/intl/ICUStubs.h:49: note: a type with different signedness is defined in another translation unit 49 | enum UErrorCode { | Generating build/opt/mongo/util/net/ssl_options_client_gen.cpp g++ -o build/opt/mongo/util/net/ssl_options_client_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/util/net/ssl_options_client_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/util/net/ssl_options_client.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/ssl_options_client.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/ssl_options_client_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libtraffic_reader.a build/opt/mongo/db/traffic_reader.o Skipping ranlib for thin archive build/opt/mongo/db/libtraffic_reader.a g++ -o build/opt/mongo/transport/message_compressor_options_client_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/transport/message_compressor_options_client_gen.cpp ar rcsTD build/opt/mongo/shell/libkms.a build/opt/mongo/shell/kms.o build/opt/mongo/shell/kms_aws.o build/opt/mongo/shell/kms_azure.o build/opt/mongo/shell/kms_gcp.o build/opt/mongo/shell/kms_local.o build/opt/mongo/shell/kms_network.o build/opt/mongo/shell/kms_gen.o In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/ssl_options_client_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/shell/libkms.a src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call g++ -o build/opt/mongo/util/password.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/password.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:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/ssl_options_client_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/ssl_options_client_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/transport/message_compressor_options_client_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/shell/bench.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/shell/bench.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/transport/message_compressor_options_client_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/transport/message_compressor_options_client_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/transport/message_compressor_options_client_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/third_party/icu4c-57.1/source/common/udata.cpp:627: warning: type of 'icudt57_dat' does not match original declaration [-Wlto-type-mismatch] 627 | extern "C" const DataHeader U_DATA_API U_ICUDATA_ENTRY_POINT; | src/third_party/icu4c-57.1/source/stubdata/stubdata.c:41: note: type 'const struct ICU_Data_Header' should match type 'const struct DataHeader' 41 | U_EXPORT const ICU_Data_Header U_ICUDATA_ENTRY_POINT = { | src/third_party/icu4c-57.1/source/stubdata/stubdata.c:41: note: 'icudt57_dat' was previously declared here In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from src/mongo/shell/bench.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from src/mongo/shell/bench.cpp:42: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/third_party/icu4c-57.1/source/common/unicode/utypes.h:476: warning: type 'UErrorCode' violates the C++ One Definition Rule [-Wodr] 476 | typedef enum UErrorCode { | src/third_party/mozjs-60/extract/js/src/builtin/intl/ICUStubs.h:49: note: an enum with different value name is defined in another translation unit 49 | enum UErrorCode { | src/third_party/icu4c-57.1/source/common/unicode/utypes.h:482: note: name 'U_USING_FALLBACK_WARNING' differs from name 'U_ZERO_ERROR' defined in another translation unit 482 | U_USING_FALLBACK_WARNING = -128, /**< A resource bundle lookup returned a fallback result (not an error) */ | src/third_party/mozjs-60/extract/js/src/builtin/intl/ICUStubs.h:50: note: mismatching definition 50 | U_ZERO_ERROR, | src/third_party/icu4c-57.1/source/i18n/unicode/ucol.h:128: warning: type 'UColAttributeValue' violates the C++ One Definition Rule [-Wodr] 128 | } UColAttributeValue; | src/third_party/mozjs-60/extract/js/src/builtin/intl/ICUStubs.h:113: note: an enum with different value name is defined in another translation unit 113 | enum UColAttributeValue { | src/third_party/icu4c-57.1/source/i18n/unicode/ucol.h:98: note: name 'UCOL_DEFAULT_STRENGTH' differs from name 'UCOL_OFF' defined in another translation unit 98 | UCOL_DEFAULT_STRENGTH = UCOL_TERTIARY, | src/third_party/mozjs-60/extract/js/src/builtin/intl/ICUStubs.h:118: note: mismatching definition 118 | UCOL_OFF = 16, | src/third_party/icu4c-57.1/source/i18n/unicode/ucol.h:341: warning: type 'UColAttribute' violates the C++ One Definition Rule [-Wodr] 341 | } UColAttribute; | src/third_party/mozjs-60/extract/js/src/builtin/intl/ICUStubs.h:104: note: an enum with different value name is defined in another translation unit 104 | enum UColAttribute { | src/third_party/icu4c-57.1/source/i18n/unicode/ucol.h:241: note: name 'UCOL_FRENCH_COLLATION' differs from name 'UCOL_ALTERNATE_HANDLING' defined in another translation unit 241 | UCOL_FRENCH_COLLATION, | src/third_party/mozjs-60/extract/js/src/builtin/intl/ICUStubs.h:105: note: mismatching definition 105 | UCOL_ALTERNATE_HANDLING, | ar rcsTD build/opt/mongo/util/net/libssl_options_client.a build/opt/mongo/util/net/ssl_options_client.o build/opt/mongo/util/net/ssl_options_client_gen.o Skipping ranlib for thin archive build/opt/mongo/util/net/libssl_options_client.a Generating build/opt/mongo/shell/shell_options_gen.cpp g++ -o build/opt/mongo/shell/shell_options_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/shell/shell_options_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from src/mongo/shell/bench.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:36, from src/mongo/shell/bench.cpp:42: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/shell/shell_options_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/transport/libmessage_compressor_options_client.a build/opt/mongo/transport/message_compressor_options_client_gen.o Skipping ranlib for thin archive build/opt/mongo/transport/libmessage_compressor_options_client.a g++ -o build/opt/mongo/crypto/symmetric_crypto_openssl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/crypto/symmetric_crypto_openssl.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/shell/shell_options_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/shell/shell_options_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/shell/shell_options_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/crypto/symmetric_crypto_openssl.cpp: In static member function 'static mongo::StatusWith > mongo::crypto::SymmetricEncryptor::create(const mongo::SymmetricKey&, mongo::crypto::aesMode, const uint8_t*, size_t)': src/mongo/crypto/symmetric_crypto_openssl.cpp:238:21: warning: redundant move in return statement [-Wredundant-move] 238 | return std::move(encryptor); | ~~~~~~~~~^~~~~~~~~~~ src/mongo/crypto/symmetric_crypto_openssl.cpp:238:21: note: remove 'std::move' call src/mongo/crypto/symmetric_crypto_openssl.cpp: In static member function 'static mongo::StatusWith > mongo::crypto::SymmetricDecryptor::create(const mongo::SymmetricKey&, mongo::crypto::aesMode, const uint8_t*, size_t)': src/mongo/crypto/symmetric_crypto_openssl.cpp:249:21: warning: redundant move in return statement [-Wredundant-move] 249 | return std::move(decryptor); | ~~~~~~~~~^~~~~~~~~~~ src/mongo/crypto/symmetric_crypto_openssl.cpp:249:21: note: remove 'std::move' call ar rcsTD build/opt/mongo/crypto/libsymmetric_crypto.a build/opt/mongo/crypto/symmetric_crypto.o build/opt/mongo/crypto/symmetric_crypto_openssl.o build/opt/mongo/crypto/symmetric_key.o Skipping ranlib for thin archive build/opt/mongo/crypto/libsymmetric_crypto.a ar rcsTD build/opt/mongo/crypto/libaead_encryption.a build/opt/mongo/crypto/aead_encryption.o Skipping ranlib for thin archive build/opt/mongo/crypto/libaead_encryption.a g++ -o build/opt/mongo/shell/shell_options_storage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/shell/shell_options_storage.cpp ar rcsTD build/opt/mongo/shell/libbenchrun.a build/opt/mongo/shell/bench.o Skipping ranlib for thin archive build/opt/mongo/shell/libbenchrun.a ar rcsTD build/opt/mongo/util/libpassword.a build/opt/mongo/util/password.o build/opt/mongo/util/password_params_gen.o Skipping ranlib for thin archive build/opt/mongo/util/libpassword.a g++ -o build/opt/mongo/shell/shell_options_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/shell/shell_options_init.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/shell/libshell_options_storage.a build/opt/mongo/shell/shell_options_storage.o Skipping ranlib for thin archive build/opt/mongo/shell/libshell_options_storage.a g++ -o build/opt/mongo/shell/mongodbcr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/shell/mongodbcr.cpp ar rcsTD build/opt/mongo/shell/libshell_options_register.a build/opt/mongo/shell/shell_options_gen.o Skipping ranlib for thin archive build/opt/mongo/shell/libshell_options_register.a g++ -o build/opt/mongo/shell/dbshell.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/shell/dbshell.cpp g++ -o build/opt/mongo/s/commands/cluster_list_shards_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_list_shards_cmd.cpp src/mongo/shell/mongodbcr.cpp: In function 'mongo::StatusWith > mongo::auth::{anonymous}::extractDBField(const mongo::BSONObj&)': src/mongo/shell/mongodbcr.cpp:64:21: warning: redundant move in return statement [-Wredundant-move] 64 | return std::move(db); | ~~~~~~~~~^~~~ src/mongo/shell/mongodbcr.cpp:64:21: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_list_shards_cmd.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/third_party/boost-1.70.0/boost/thread/thread_only.hpp:17, from src/third_party/boost-1.70.0/boost/thread/thread.hpp:12, from src/third_party/boost-1.70.0/boost/log/sinks/async_frontend.hpp:39, from src/third_party/boost-1.70.0/boost/log/sinks.hpp:25, from src/mongo/shell/dbshell.cpp:38: src/third_party/boost-1.70.0/boost/thread/pthread/thread_data.hpp: In member function 'void boost::thread_attributes::set_stack_size(std::size_t)': src/third_party/boost-1.70.0/boost/thread/pthread/thread_data.hpp:61:19: warning: comparison of integer expressions of different signedness: 'std::size_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare] 61 | if (size mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_list_shards_cmd.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_list_shards_cmd.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_move_primary_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_move_primary_cmd.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_move_primary_cmd.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_move_primary_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_move_primary_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_move_primary_cmd.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call Using tempfile /usr/src/tmp/tmp6y_kff1o.lnk for command line: g++ -o build/opt/mongo/mongo -pthread -Wl,-z,now -rdynamic -fstack-protector-strong -fuse-ld=gold -Wl,--no-threads -Wl,--build-id -Wl,--hash-style=gnu -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro -pie build/opt/mongo/shell/dbshell.o build/opt/mongo/shell/mongodbcr.o build/opt/mongo/shell/shell_options_init.o -Wl,--whole-archive build/opt/mongo/util/net/libssl_options_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libhttp_client_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libalarm.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/transport/libmessage_compressor_options_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/shell/libkms_shell.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/shell/libencrypted_dbclient.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/shell/libshell_options_register.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/shell/libkms.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/crypto/libaead_encryption.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/crypto/libsymmetric_crypto.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/libshell_core.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/util/libsignal_handlers.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/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/concurrency/libflow_control_ticketholder.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/db/libserver_options_base.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/shell/libshell_utils.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libpassword.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/shell/libshell_options_storage.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/base/libenvironment_buffer.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/shell/libbenchrun.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libtraffic_reader.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/catalog/libindex_key_validate.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/query/libsort_pattern.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libprojection_ast.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libdocument_path_support.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/fts/libbase_fts.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_stemmer.a -Wl,--no-whole-archive -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/exec/libworking_set.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/exec/libprojection_executor.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/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/util/libregex_util.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/scripting/libscripting.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_mozjs.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/mozjs-60/libmozjs.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/scripting/libbson_template_evaluator.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/query/collation/libcollator_factory_interface.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/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/pipeline/libdocument_sources_idl.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/libmongohasher.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/exec/document_value/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-2021.06/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/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/fts/libfts_query_noop.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/catalog/libindex_catalog_entry.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/storage/libduplicate_key_error_info.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/db/stats/libcounters.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/executor/libhedging_metrics.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/transport/libmessage_compressor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_zstd.a -Wl,--no-whole-archive build/opt/third_party/zstandard-1.4.3/libzstd.a -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/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/libnetwork_interface.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/client/sdam/libsdam.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/client/sdam/libsdam_configuration_parameters.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libreplica_set_monitor_server_parameters.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/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/libsocket.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libopenssl_init.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/libcaching.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/util/concurrency/libthread_pool.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/librpc.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/s/libmongos_server_parameters.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/librewrite_state_change_errors.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libprotocol.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/wiredtiger/libwiredtiger_checksum.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/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/libcollection_catalog.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libprofile_filter.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/util/liblog_and_backoff.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/ops/libwrite_ops_parsers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libhint_parser.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libruntime_constants_idl.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/db/libdbmessage.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/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/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/transport/libtransport_layer_common.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/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/repl/liboptime_base.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/rpc/libmetadata_impersonated_user.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/libcommon.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/commands/libtest_commands_enabled.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/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/libperiodic_runner.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/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/storage/librecovery_unit_base.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/db/libwrite_concern_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libread_write_concern_provenance.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libmulti_key_path_tracker.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/liblogical_session_id.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/idl/libserver_parameter.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/util/net/libhttp_client.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/client/libsasl_aws_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_kms_message.a -Wl,--no-whole-archive build/opt/third_party/kms-message/libkms-message.a -Wl,--whole-archive build/opt/mongo/client/libsasl_aws_common.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/commands/libserver_status_core.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/client/libconnection_string.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/db/libserver_options_core.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/bson/util/libbson_extract.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_unwind.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/unwind/libunwind.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_fmt.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/fmt/libfmt.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_boost.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/boost-1.70.0/libboost_program_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/boost-1.70.0/libboost_log.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/boost-1.70.0/libboost_thread.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/boost-1.70.0/libboost_iostreams.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/boost-1.70.0/libboost_filesystem.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/boost-1.70.0/libboost_system.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_abseil.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/abseil-cpp-master/libabsl_container.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/abseil-cpp-master/libabsl_throw_delegate.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/abseil-cpp-master/libabsl_hash.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,--whole-archive build/opt/mongo/stdx/libstdx.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/libboost_assert_shim.a -Wl,--no-whole-archive -lcurl -llzma -lstemmer -lz -lsnappy -lsasl2 -lyaml-cpp -llzma -lpcre -lpcrecpp -ltcmalloc -lm -lresolv -lcrypto -lssl -lcrypto -ldl -llzma -lrt -ldl g++ @/usr/src/tmp/tmp6y_kff1o.lnk g++ -o build/opt/mongo/s/committed_optime_metadata_hook.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/committed_optime_metadata_hook.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_rwc_defaults_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_rwc_defaults_commands.cpp g++ -o build/opt/mongo/s/commands/cluster_compact_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_compact_cmd.cpp src/third_party/mozjs-60/extract/js/src/builtin/intl/ICUStubs.h:49: warning: type 'UErrorCode' violates the C++ One Definition Rule [-Wodr] 49 | enum UErrorCode { | src/third_party/icu4c-57.1/source/common/unicode/utypes.h:476: note: a type with different signedness is defined in another translation unit 476 | typedef enum UErrorCode { | In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_rwc_defaults_commands.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_compact_cmd.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_rwc_defaults_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_compact_cmd.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_rwc_defaults_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_rwc_defaults_commands.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_compact_cmd.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_compact_cmd.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/third_party/icu4c-57.1/source/common/udata.cpp:627: warning: type of 'icudt57_dat' does not match original declaration [-Wlto-type-mismatch] 627 | extern "C" const DataHeader U_DATA_API U_ICUDATA_ENTRY_POINT; | src/third_party/icu4c-57.1/source/stubdata/stubdata.c:41: note: type 'const struct ICU_Data_Header' should match type 'const struct DataHeader' 41 | U_EXPORT const ICU_Data_Header U_ICUDATA_ENTRY_POINT = { | src/third_party/icu4c-57.1/source/stubdata/stubdata.c:41: note: 'icudt57_dat' was previously declared here src/third_party/mozjs-60/extract/js/src/builtin/intl/ICUStubs.h:49: warning: type 'UErrorCode' violates the C++ One Definition Rule [-Wodr] 49 | enum UErrorCode { | src/third_party/icu4c-57.1/source/common/unicode/utypes.h:476: note: an enum with different value name is defined in another translation unit 476 | typedef enum UErrorCode { | src/third_party/mozjs-60/extract/js/src/builtin/intl/ICUStubs.h:50: note: name 'U_ZERO_ERROR' differs from name 'U_USING_FALLBACK_WARNING' defined in another translation unit 50 | U_ZERO_ERROR, | src/third_party/icu4c-57.1/source/common/unicode/utypes.h:482: note: mismatching definition 482 | U_USING_FALLBACK_WARNING = -128, /**< A resource bundle lookup returned a fallback result (not an error) */ | src/third_party/mozjs-60/extract/js/src/builtin/intl/ICUStubs.h:113: warning: type 'UColAttributeValue' violates the C++ One Definition Rule [-Wodr] 113 | enum UColAttributeValue { | src/third_party/icu4c-57.1/source/i18n/unicode/ucol.h:128: note: an enum with different value name is defined in another translation unit 128 | } UColAttributeValue; | src/third_party/mozjs-60/extract/js/src/builtin/intl/ICUStubs.h:118: note: name 'UCOL_OFF' differs from name 'UCOL_DEFAULT_STRENGTH' defined in another translation unit 118 | UCOL_OFF = 16, | src/third_party/icu4c-57.1/source/i18n/unicode/ucol.h:98: note: mismatching definition 98 | UCOL_DEFAULT_STRENGTH = UCOL_TERTIARY, | src/third_party/mozjs-60/extract/js/src/builtin/intl/ICUStubs.h:104: warning: type 'UColAttribute' violates the C++ One Definition Rule [-Wodr] 104 | enum UColAttribute { | src/third_party/icu4c-57.1/source/i18n/unicode/ucol.h:341: note: an enum with different value name is defined in another translation unit 341 | } UColAttribute; | src/third_party/mozjs-60/extract/js/src/builtin/intl/ICUStubs.h:105: note: name 'UCOL_ALTERNATE_HANDLING' differs from name 'UCOL_FRENCH_COLLATION' defined in another translation unit 105 | UCOL_ALTERNATE_HANDLING, | src/third_party/icu4c-57.1/source/i18n/unicode/ucol.h:241: note: mismatching definition 241 | UCOL_FRENCH_COLLATION, | src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_create_indexes_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_create_indexes_cmd.cpp g++ -o build/opt/mongo/s/commands/cluster_merge_chunks_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_merge_chunks_cmd.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_create_indexes_cmd.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_create_indexes_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_merge_chunks_cmd.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_create_indexes_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_create_indexes_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_merge_chunks_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_merge_chunks_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_merge_chunks_cmd.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/db/auth/user_cache_invalidator_job_parameters_gen.cpp g++ -o build/opt/mongo/db/auth/user_cache_invalidator_job.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/user_cache_invalidator_job.cpp g++ -o build/opt/mongo/db/service_liaison_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/service_liaison_mongos.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/auth/user_cache_invalidator_job.cpp:44: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/db/service_liaison_mongos.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/db/service_liaison_mongos.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/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::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_build_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_build_info.cpp 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 g++ -o build/opt/mongo/s/commands/cluster_remove_shard_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_remove_shard_cmd.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_build_info.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_shard_cmd.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_build_info.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_build_info.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_build_info.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_shard_cmd.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/strategy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/strategy.cpp g++ -o build/opt/mongo/s/commands/cluster_whats_my_uri_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/strategy.cpp:46: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/strategy.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/strategy.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/strategy.cpp:46: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_update_zone_key_range_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_update_zone_key_range_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_update_zone_key_range_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_fsync_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_fsync_cmd.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_fsync_cmd.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_fsync_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_fsync_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_fsync_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/router_transactions_server_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/router_transactions_server_status.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/s/router_transactions_server_status.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/s/router_transactions_server_status.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/s/router_transactions_server_status.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/s/router_transactions_server_status.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_explain.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_explain.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_explain.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_explain.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_explain.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_explain.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Generating build/opt/mongo/s/commands/cluster_multicast_gen.cpp g++ -o build/opt/mongo/s/commands/cluster_multicast_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/commands/cluster_multicast_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/commands/cluster_multicast_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_refine_collection_shard_key_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_refine_collection_shard_key_cmd.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:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_refine_collection_shard_key_cmd.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_refine_collection_shard_key_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_refine_collection_shard_key_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_refine_collection_shard_key_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_netstat_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_netstat_cmd.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_netstat_cmd.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_netstat_cmd.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_netstat_cmd.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_netstat_cmd.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_killoperations_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_killoperations_cmd.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killoperations_common.h:43, from src/mongo/s/commands/cluster_killoperations_cmd.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killoperations_common.h:43, from src/mongo/s/commands/cluster_killoperations_cmd.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killoperations_common.h:43, from src/mongo/s/commands/cluster_killoperations_cmd.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killoperations_common.h:43, from src/mongo/s/commands/cluster_killoperations_cmd.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_control_balancer_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_control_balancer_cmd.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_control_balancer_cmd.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_control_balancer_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_control_balancer_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_control_balancer_cmd.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_ftdc_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_ftdc_commands.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_ftdc_commands.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_ftdc_commands.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_ftdc_commands.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_ftdc_commands.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_getmore_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_getmore_cmd.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_getmore_cmd.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_getmore_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_getmore_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_getmore_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_kill_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_kill_op.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_kill_op.cpp:43: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_kill_op.cpp:43: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call Generating build/opt/mongo/s/commands/kill_sessions_remote_gen.cpp g++ -o build/opt/mongo/s/commands/kill_sessions_remote_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/commands/kill_sessions_remote_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/commands/kill_sessions_remote_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/commands/kill_sessions_remote_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/commands/kill_sessions_remote_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/commands/kill_sessions_remote_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_add_shard_to_zone_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_add_shard_to_zone_cmd.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_add_shard_to_zone_cmd.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_get_shard_version_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_get_shard_version_cmd.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_add_shard_to_zone_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_add_shard_to_zone_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_add_shard_to_zone_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_shard_version_cmd.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_shard_version_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_shard_version_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_shard_version_cmd.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_list_databases_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_list_databases_cmd.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_set_feature_compatibility_version_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_set_feature_compatibility_version_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_list_databases_cmd.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_list_databases_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_list_databases_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_list_databases_cmd.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_is_db_grid_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_is_db_grid_cmd.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_is_db_grid_cmd.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_is_db_grid_cmd.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_is_db_grid_cmd.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_is_db_grid_cmd.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_filemd5_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_filemd5_cmd.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_filemd5_cmd.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_filemd5_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_filemd5_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_filemd5_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_write_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_write_cmd.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_write_cmd.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_write_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_write_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_write_cmd.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_move_chunk_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_move_chunk_cmd.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_move_chunk_cmd.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_move_chunk_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_move_chunk_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_move_chunk_cmd.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/document_shard_key_update_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/document_shard_key_update_util.cpp g++ -o build/opt/mongo/s/commands/cluster_map_reduce_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_map_reduce_cmd.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/commands/document_shard_key_update_util.h:39, from src/mongo/s/commands/document_shard_key_update_util.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/commands/document_shard_key_update_util.h:39, from src/mongo/s/commands/document_shard_key_update_util.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/commands/document_shard_key_update_util.h:39, from src/mongo/s/commands/document_shard_key_update_util.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/db/curop.h:35, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/commands/document_shard_key_update_util.h:39, from src/mongo/s/commands/document_shard_key_update_util.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_map_reduce_cmd.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_map_reduce_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_map_reduce_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_map_reduce_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_user_management_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_user_management_commands.cpp g++ -o build/opt/mongo/s/commands/cluster_find_and_modify_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_find_and_modify_cmd.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_user_management_commands.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_user_management_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_find_and_modify_cmd.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_user_management_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_user_management_commands.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_find_and_modify_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_find_and_modify_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_find_and_modify_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_balancer_collection_status_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_balancer_collection_status_cmd.cpp g++ -o build/opt/mongo/s/commands/cluster_index_filter_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_index_filter_cmd.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/s/commands/cluster_balancer_collection_status_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/s/commands/cluster_balancer_collection_status_cmd.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/s/commands/cluster_balancer_collection_status_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog_raii.h:33, from src/mongo/s/commands/cluster_balancer_collection_status_cmd.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_index_filter_cmd.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_index_filter_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_index_filter_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_index_filter_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_drop_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_drop_cmd.cpp g++ -o build/opt/mongo/s/commands/cluster_map_reduce_agg.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_map_reduce_agg.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_cmd.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_map_reduce_agg.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_map_reduce_agg.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_map_reduce_agg.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_map_reduce_agg.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_is_master_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_is_master_cmd.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/s/commands/cluster_is_master_cmd.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/s/commands/cluster_is_master_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/kill_sessions_remote.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/kill_sessions_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:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/s/commands/cluster_is_master_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/s/commands/cluster_is_master_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/commands/kill_sessions_remote.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/commands/kill_sessions_remote.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/commands/kill_sessions_remote.cpp:46: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/commands/kill_sessions_remote.cpp:46: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_remove_shard_from_zone_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/commands/kill_sessions_remote.cpp:46: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_find_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_find_cmd.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_shard_from_zone_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_shard_from_zone_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_find_cmd.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_find_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_find_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_find_cmd.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_abort_transaction_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_abort_transaction_cmd.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_abort_transaction_cmd.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_abort_transaction_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_abort_transaction_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_abort_transaction_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_db_stats_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_db_stats_cmd.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_db_stats_cmd.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_db_stats_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_db_stats_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_db_stats_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_multicast.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_multicast.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_multicast.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_multicast.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_split_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_split_cmd.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_multicast.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_multicast.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_split_cmd.cpp:40: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_split_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_split_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_split_cmd.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_add_shard_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_add_shard_cmd.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_add_shard_cmd.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_add_shard_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_add_shard_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_add_shard_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_coll_stats_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_coll_stats_cmd.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_coll_stats_cmd.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_coll_stats_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_coll_stats_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_coll_stats_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_distinct_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_distinct_cmd.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_distinct_cmd.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_distinct_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_distinct_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_distinct_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_current_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_current_op.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:32, from src/mongo/s/commands/cluster_current_op.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:32, from src/mongo/s/commands/cluster_current_op.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:32, from src/mongo/s/commands/cluster_current_op.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:32, from src/mongo/s/commands/cluster_current_op.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_get_last_error_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_get_last_error_cmd.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_last_error_cmd.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_last_error_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_set_index_commit_quorum_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_set_index_commit_quorum_cmd.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:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_last_error_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_last_error_cmd.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_set_index_commit_quorum_cmd.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_set_index_commit_quorum_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_set_index_commit_quorum_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_set_index_commit_quorum_cmd.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_create_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_create_cmd.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_create_cmd.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_shard_collection_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_shard_collection_cmd.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_create_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_create_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_create_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_shard_collection_cmd.cpp:47: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_shard_collection_cmd.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_shard_collection_cmd.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_shard_collection_cmd.cpp:47: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_killcursors_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -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::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:30, from src/mongo/s/commands/cluster_killcursors_cmd.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_collection_mod_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_collection_mod_cmd.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:30, from src/mongo/s/commands/cluster_killcursors_cmd.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:30, from src/mongo/s/commands/cluster_killcursors_cmd.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:30, from src/mongo/s/commands/cluster_killcursors_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_collection_mod_cmd.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_collection_mod_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_collection_mod_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_collection_mod_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_repl_set_get_status_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_clear_jumbo_flag_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_clear_jumbo_flag_cmd.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_clear_jumbo_flag_cmd.cpp:40: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_clear_jumbo_flag_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_clear_jumbo_flag_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_clear_jumbo_flag_cmd.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_drop_indexes_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_drop_indexes_cmd.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_indexes_cmd.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_indexes_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/commands_public.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/commands_public.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:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_indexes_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_indexes_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/commands_public.cpp:40: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/commands_public.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/commands_public.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/commands_public.cpp:40: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/s/commands/commands_public.cpp: In member function 'mongo::BSONObj mongo::{anonymous}::CmdListCollections::rewriteCommandForListingOwnCollections(mongo::OperationContext*, const string&, const mongo::BSONObj&)': src/mongo/s/commands/commands_public.cpp:430:63: warning: loop variable 'resourcePrivilege' of type 'const std::pair&' binds to a temporary constructed from type 'const value_type' {aka 'const std::pair'} [-Wrange-loop-construct] 430 | for (const std::pair& resourcePrivilege : | ^~~~~~~~~~~~~~~~~ src/mongo/s/commands/commands_public.cpp:430:63: note: use non-reference type 'const std::pair' to make the copy explicit or 'const value_type&' {aka 'const std::pair&'} to prevent copying g++ -o build/opt/mongo/s/commands/cluster_explain_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_explain_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/commands_public.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_explain_cmd.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_available_query_options_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_available_query_options_cmd.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_explain_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_available_query_options_cmd.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_available_query_options_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_available_query_options_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_available_query_options_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/s_read_write_concern_defaults_server_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/s_read_write_concern_defaults_server_status.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/s/commands/s_read_write_concern_defaults_server_status.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/s/commands/s_read_write_concern_defaults_server_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_data_size_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_data_size_cmd.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:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/s/commands/s_read_write_concern_defaults_server_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/s/commands/s_read_write_concern_defaults_server_status.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_data_size_cmd.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_data_size_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_data_size_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_data_size_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_enable_sharding_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_enable_sharding_cmd.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_enable_sharding_cmd.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_drop_database_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_drop_database_cmd.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_enable_sharding_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_enable_sharding_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_enable_sharding_cmd.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_database_cmd.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_database_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_database_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_database_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_plan_cache_clear_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_plan_cache_clear_cmd.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_plan_cache_clear_cmd.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_pipeline_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_pipeline_cmd.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_plan_cache_clear_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_plan_cache_clear_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_plan_cache_clear_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_pipeline_cmd.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_pipeline_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_pipeline_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_pipeline_cmd.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_shutdown_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_shutdown_cmd.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_shutdown_cmd.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_shutdown_cmd.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_validate_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_validate_cmd.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:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_shutdown_cmd.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_shutdown_cmd.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_validate_cmd.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_validate_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_validate_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_validate_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_count_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_count_cmd.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_count_cmd.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_count_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_count_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_count_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_commit_transaction_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_commit_transaction_cmd.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_commit_transaction_cmd.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_commit_transaction_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_commit_transaction_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_commit_transaction_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_profile_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_profile_cmd.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/s/commands/cluster_profile_cmd.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/extensions_callback.h:35, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/s/commands/cluster_profile_cmd.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/s/commands/cluster_profile_cmd.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:36, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/catalog/collection.h:48, from src/mongo/db/catalog/collection_catalog.h:36, from src/mongo/s/commands/cluster_profile_cmd.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/commands/cluster_reset_error_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/cluster_reset_error_cmd.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_reset_error_cmd.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_reset_error_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_reset_error_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_reset_error_cmd.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/write_ops/batch_downconvert.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/write_ops/batch_downconvert.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/s/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 g++ -o build/opt/mongo/db/ftdc/ftdc_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ftdc/ftdc_mongos.cpp ar rcsTD build/opt/mongo/s/commands/libcluster_commands.a build/opt/mongo/s/commands/cluster_abort_transaction_cmd.o 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_available_query_options_cmd.o build/opt/mongo/s/commands/cluster_balancer_collection_status_cmd.o build/opt/mongo/s/commands/cluster_build_info.o build/opt/mongo/s/commands/cluster_clear_jumbo_flag_cmd.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_commit_transaction_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_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_get_last_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_killoperations_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_agg.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_clear_cmd.o build/opt/mongo/s/commands/cluster_profile_cmd.o build/opt/mongo/s/commands/cluster_refine_collection_shard_key_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_rwc_defaults_commands.o build/opt/mongo/s/commands/cluster_set_index_commit_quorum_cmd.o build/opt/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.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/document_shard_key_update_util.o build/opt/mongo/s/commands/kill_sessions_remote.o build/opt/mongo/s/commands/s_read_write_concern_defaults_server_status.o build/opt/mongo/s/commands/strategy.o build/opt/mongo/s/commands/cluster_multicast_gen.o build/opt/mongo/s/commands/kill_sessions_remote_gen.o Skipping ranlib for thin archive build/opt/mongo/s/commands/libcluster_commands.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 g++ -o build/opt/mongo/s/mongos_options_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/mongos_options_init.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_mongos.cpp:41: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_mongos.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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_mongos.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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_mongos.cpp:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/sharding_uptime_reporter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/sharding_uptime_reporter.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/server.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/server.cpp 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 g++ -o build/opt/mongo/s/s_sharding_server_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/s_sharding_server_status.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/s/s_sharding_server_status.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/s/s_sharding_server_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/s/s_sharding_server_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:32, from src/mongo/s/s_sharding_server_status.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/server.cpp:90: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/server.cpp:90: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/server.cpp:90: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/server.cpp:90: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/db/auth/authz_manager_external_state_s.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/authz_manager_external_state_s.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/server.cpp:90: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call g++ -o build/opt/mongo/s/cluster_cursor_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/cluster_cursor_stats.cpp g++ -o build/opt/mongo/db/read_write_concern_defaults_cache_lookup_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/read_write_concern_defaults_cache_lookup_mongos.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/cluster_cursor_stats.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635: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:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/cluster_cursor_stats.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/cluster_cursor_stats.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/cluster_cursor_stats.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call g++ -o build/opt/mongo/s/version_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/version_mongos.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:40, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/cluster_cursor_stats.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In function 'memcpy', inlined from 'unsafeStore' at src/mongo/base/data_type.h:98:0, inlined from 'unsafeStore' at src/mongo/base/data_type.h:158:32, inlined from 'unsafeStore' at src/mongo/base/data_type_endian.h:115:30, inlined from 'unsafeStore' at src/mongo/base/data_type.h:158:32, inlined from 'write' at src/mongo/base/data_view.h:85:30, inlined from 'setResultFlags' at src/mongo/db/dbmessage.h:180:41, inlined from 'setResultFlagsToOk' at src/mongo/db/dbmessage.h:184:0, inlined from 'runQuery' at src/mongo/db/query/find.cpp:831:0: /usr/include/bits/string_fortified.h:29: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | In function 'memcpy', inlined from 'unsafeStore' at src/mongo/base/data_type.h:98:0, inlined from 'unsafeStore' at src/mongo/base/data_type.h:158:32, inlined from 'unsafeStore' at src/mongo/base/data_type_endian.h:115:30, inlined from 'unsafeStore' at src/mongo/base/data_type.h:158:32, inlined from 'write' at src/mongo/base/data_view.h:85:30, inlined from 'setResultFlags' at src/mongo/db/dbmessage.h:180:41, inlined from 'setResultFlagsToOk' at src/mongo/db/dbmessage.h:184:0, inlined from 'runQuery' at src/mongo/db/query/find.cpp:685:0: /usr/include/bits/string_fortified.h:29: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | g++ -o build/opt/mongo/s/sharding_egress_metadata_hook_for_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/sharding_egress_metadata_hook_for_mongos.cpp g++ -o build/opt/mongo/db/auth/authz_session_external_state_s.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/authz_session_external_state_s.cpp g++ -o build/opt/mongo/db/auth/user_cache_invalidator_job_parameters_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/auth/user_cache_invalidator_job_parameters_gen.cpp 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 Generating build/opt/mongo/s/mongos_options_gen.cpp g++ -o build/opt/mongo/s/mongos_options_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/mongos_options_gen.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/user_cache_invalidator_job_parameters_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/user_cache_invalidator_job_parameters_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/user_cache_invalidator_job_parameters_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/user_cache_invalidator_job_parameters_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from build/opt/mongo/s/mongos_options_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/mongos_options_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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/mongos_options_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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:47, from build/opt/mongo/s/mongos_options_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call 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 build/opt/mongo/db/auth/user_cache_invalidator_job_parameters_gen.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauthmongos.a g++ -o build/opt/mongo/s/mongos_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/mongos_options.cpp g++ -o build/opt/mongo/s/service_entry_point_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/service_entry_point_mongos.cpp In file included from src/mongo/db/pipeline/expression_context.h:44, from src/mongo/db/exec/plan_stage.h:37, from src/mongo/db/query/explain.h:32, from src/mongo/db/commands.h:47, from src/mongo/s/service_entry_point_mongos.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:34, 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:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:223:25: warning: redundant move in return statement [-Wredundant-move] 223 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:223:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:245:25: warning: redundant move in return statement [-Wredundant-move] 245 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:245:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:267:25: warning: redundant move in return statement [-Wredundant-move] 267 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:267:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:289:25: warning: redundant move in return statement [-Wredundant-move] 289 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:289:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:308:25: warning: redundant move in return statement [-Wredundant-move] 308 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:308:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:352:25: warning: redundant move in return statement [-Wredundant-move] 352 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:352:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:388:25: warning: redundant move in return statement [-Wredundant-move] 388 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:388:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:572:25: warning: redundant move in return statement [-Wredundant-move] 572 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:572:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:593:25: warning: redundant move in return statement [-Wredundant-move] 593 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:593:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:614:25: warning: redundant move in return statement [-Wredundant-move] 614 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:614:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:635:25: warning: redundant move in return statement [-Wredundant-move] 635 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:635:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202: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:32, from src/mongo/db/query/projection_ast.h:33, from src/mongo/db/query/projection.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:34, 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 member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call Using tempfile /usr/src/tmp/tmp9ceqr1h7.lnk for command line: g++ -o build/opt/mongo/mongos -pthread -Wl,-z,now -rdynamic -fstack-protector-strong -fuse-ld=gold -Wl,--no-threads -Wl,--build-id -Wl,--hash-style=gnu -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro -pie build/opt/mongo/db/read_write_concern_defaults_cache_lookup_mongos.o 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/mongos_options_gen.o build/opt/mongo/s/router_transactions_server_status.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,--whole-archive build/opt/mongo/util/options_parser/liboptions_parser_init.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libssl_options_server.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libhttp_client_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libalarm.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/util/libtesting_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libtcmalloc_set_parameter.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/liblatch_analyzer.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/transport/libmessage_compressor_options_server.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/client/libremote_command_targeter.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/libsessions_collection_sharded.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/query/libcluster_aggregate.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/process_interface/libmongos_process_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/process_interface/libcommon_process_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libsharded_agg_helpers.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/query/libasync_results_merger.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/db/storage/libduplicate_key_error_info.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/libdistinct_command_idl.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_factory_icu.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/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/repl/libspeculative_authenticate.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libmap_reduce_output_format.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/commands/libwrite_commands_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libset_index_commit_quorum_idl.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/storage/libstorage_control.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libjournal_flusher.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libcommit_quorum_options.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/s/libsharding_legacy_api.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libsharding_router_api.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/libhedge_options_util.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/executor/libscoped_task_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libshared_request_handling.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libtxn_cmd_request.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/repl/libisself.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libtraffic_recorder.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/librename_collection_idl.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/libmap_reduce_parser.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/liboperation_killer.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/libcurrent_op_common.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/db/storage/wiredtiger/libstorage_wiredtiger_customization_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/libsession_catalog.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/db/libread_write_concern_defaults.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/db/librange_arithmetic.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/libinitialize_server_security_state.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libssl_parameters_auth.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libserverinit.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/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/libserver_options_servers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libserver_options_base.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/auth/libsecurity_file.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/liblasterror.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/commands/libserver_status.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/libcoreshard.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/libkill_sessions.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/s/libchunk_writes_tracker.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/executor/libtask_executor_pool.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/db/libclient_metadata_propagation_egress_hook.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/libauthentication_commands.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/libsasl_options_init.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/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/pipeline/libpipeline.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/repl/libspeculative_majority_read_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/catalog/libcollection_options.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/libexpression_javascript.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/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/liberror_labels.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/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/libcurop_failpoint_helpers.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/util/libdiagnostic_info.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/libprepare_conflict_tracker.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/db/libcommands.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/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/concurrency/libflow_control_ticketholder.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/libsort_executor.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/exec/libscoped_timer.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/index/libkey_generator.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libsort_pattern.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libprojection_ast.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libdocument_path_support.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/catalog/libindex_catalog_entry.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 -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/exec/libworking_set.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/exec/libprojection_executor.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/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/util/libregex_util.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/scripting/libscripting.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_mozjs.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/mozjs-60/libmozjs.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/scripting/libbson_template_evaluator.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/executor/libhedging_metrics.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/transport/libmessage_compressor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_zstd.a -Wl,--no-whole-archive build/opt/third_party/zstandard-1.4.3/libzstd.a -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/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/libnetwork_interface.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/client/sdam/libsdam.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/client/sdam/libsdam_configuration_parameters.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libreplica_set_monitor_server_parameters.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/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/libsocket.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libopenssl_init.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/libcaching.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/util/concurrency/libthread_pool.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/query/libquery_knobs.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/query/collation/libcollator_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/librpc.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/librewrite_state_change_errors.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libprotocol.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/wiredtiger/libwiredtiger_checksum.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/db/pipeline/libdocument_sources_idl.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/s/libmongos_server_parameters.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/libcollection_catalog.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libprofile_filter.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/util/liblog_and_backoff.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/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/db/pipeline/libdependencies.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/exec/document_value/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-2021.06/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/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/fts/libfts_query_noop.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/ops/libwrite_ops_parsers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libhint_parser.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libruntime_constants_idl.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/auth/libauth_options.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/db/stats/libcounters.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/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/transport/libtransport_layer_common.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/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/repl/liboptime_base.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/rpc/libmetadata_impersonated_user.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/libcommon.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/commands/libtest_commands_enabled.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/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/libperiodic_runner.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/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/storage/librecovery_unit_base.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/db/libwrite_concern_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libread_write_concern_provenance.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libmulti_key_path_tracker.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/liblogical_session_id.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/idl/libserver_parameter.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/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/util/net/libhttp_client.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/client/libsasl_aws_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_kms_message.a -Wl,--no-whole-archive build/opt/third_party/kms-message/libkms-message.a -Wl,--whole-archive build/opt/mongo/client/libsasl_aws_common.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/commands/libserver_status_core.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_unwind.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/unwind/libunwind.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_fmt.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/fmt/libfmt.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_boost.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/boost-1.70.0/libboost_program_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/boost-1.70.0/libboost_log.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/boost-1.70.0/libboost_thread.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/boost-1.70.0/libboost_iostreams.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/boost-1.70.0/libboost_filesystem.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/boost-1.70.0/libboost_system.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_abseil.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/abseil-cpp-master/libabsl_container.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/abseil-cpp-master/libabsl_throw_delegate.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/abseil-cpp-master/libabsl_hash.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,--whole-archive build/opt/mongo/stdx/libstdx.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/libboost_assert_shim.a -Wl,--no-whole-archive -lcurl -llzma -lstemmer -lz -lsnappy -lsasl2 -lyaml-cpp -llzma -lpcre -lpcrecpp -ltcmalloc -lm -lresolv -lcrypto -lssl -lcrypto -ldl -llzma -lrt -ldl g++ @/usr/src/tmp/tmp9ceqr1h7.lnk src/third_party/icu4c-57.1/source/common/unicode/utypes.h:476: warning: type 'UErrorCode' violates the C++ One Definition Rule [-Wodr] 476 | typedef enum UErrorCode { | src/third_party/mozjs-60/extract/js/src/builtin/intl/ICUStubs.h:49: note: a type with different signedness is defined in another translation unit 49 | enum UErrorCode { | src/third_party/icu4c-57.1/source/common/udata.cpp:627: warning: type of 'icudt57_dat' does not match original declaration [-Wlto-type-mismatch] 627 | extern "C" const DataHeader U_DATA_API U_ICUDATA_ENTRY_POINT; | src/third_party/icu4c-57.1/source/stubdata/stubdata.c:41: note: type 'const struct ICU_Data_Header' should match type 'const struct DataHeader' 41 | U_EXPORT const ICU_Data_Header U_ICUDATA_ENTRY_POINT = { | src/third_party/icu4c-57.1/source/stubdata/stubdata.c:41: note: 'icudt57_dat' was previously declared here src/third_party/icu4c-57.1/source/common/unicode/utypes.h:476: warning: type 'UErrorCode' violates the C++ One Definition Rule [-Wodr] 476 | typedef enum UErrorCode { | src/third_party/mozjs-60/extract/js/src/builtin/intl/ICUStubs.h:49: note: an enum with different value name is defined in another translation unit 49 | enum UErrorCode { | src/third_party/icu4c-57.1/source/common/unicode/utypes.h:482: note: name 'U_USING_FALLBACK_WARNING' differs from name 'U_ZERO_ERROR' defined in another translation unit 482 | U_USING_FALLBACK_WARNING = -128, /**< A resource bundle lookup returned a fallback result (not an error) */ | src/third_party/mozjs-60/extract/js/src/builtin/intl/ICUStubs.h:50: note: mismatching definition 50 | U_ZERO_ERROR, | src/third_party/icu4c-57.1/source/i18n/unicode/ucol.h:128: warning: type 'UColAttributeValue' violates the C++ One Definition Rule [-Wodr] 128 | } UColAttributeValue; | src/third_party/mozjs-60/extract/js/src/builtin/intl/ICUStubs.h:113: note: an enum with different value name is defined in another translation unit 113 | enum UColAttributeValue { | src/third_party/icu4c-57.1/source/i18n/unicode/ucol.h:98: note: name 'UCOL_DEFAULT_STRENGTH' differs from name 'UCOL_OFF' defined in another translation unit 98 | UCOL_DEFAULT_STRENGTH = UCOL_TERTIARY, | src/third_party/mozjs-60/extract/js/src/builtin/intl/ICUStubs.h:118: note: mismatching definition 118 | UCOL_OFF = 16, | src/third_party/icu4c-57.1/source/i18n/unicode/ucol.h:341: warning: type 'UColAttribute' violates the C++ One Definition Rule [-Wodr] 341 | } UColAttribute; | src/third_party/mozjs-60/extract/js/src/builtin/intl/ICUStubs.h:104: note: an enum with different value name is defined in another translation unit 104 | enum UColAttribute { | src/third_party/icu4c-57.1/source/i18n/unicode/ucol.h:241: note: name 'UCOL_FRENCH_COLLATION' differs from name 'UCOL_ALTERNATE_HANDLING' defined in another translation unit 241 | UCOL_FRENCH_COLLATION, | src/third_party/mozjs-60/extract/js/src/builtin/intl/ICUStubs.h:105: note: mismatching definition 105 | UCOL_ALTERNATE_HANDLING, | In function 'memcpy', inlined from 'unsafeStore' at src/mongo/base/data_type.h:98:0, inlined from 'unsafeStore' at src/mongo/base/data_type.h:158:32, inlined from 'unsafeStore' at src/mongo/base/data_type_endian.h:115:30, inlined from 'unsafeStore' at src/mongo/base/data_type.h:158:32, inlined from 'write' at src/mongo/base/data_view.h:85:30, inlined from 'setResultFlags' at src/mongo/db/dbmessage.h:180:41, inlined from 'setResultFlagsToOk' at src/mongo/db/dbmessage.h:184:23, inlined from 'done' at src/mongo/rpc/legacy_reply_builder.cpp:134:30: /usr/include/bits/string_fortified.h:29: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | In function 'memcpy', inlined from 'unsafeStore' at src/mongo/base/data_type.h:98:0, inlined from 'unsafeStore' at src/mongo/base/data_type.h:158:32, inlined from 'unsafeStore' at src/mongo/base/data_type_endian.h:115:30, inlined from 'unsafeStore' at src/mongo/base/data_type.h:158:32, inlined from 'write' at src/mongo/base/data_view.h:85:30, inlined from 'setResultFlags' at src/mongo/db/dbmessage.h:180:41, inlined from 'done' at src/mongo/rpc/legacy_reply_builder.cpp:132:26: /usr/include/bits/string_fortified.h:29: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | src/third_party/icu4c-57.1/source/i18n/decNumber.c: In function 'uprv_decNumberLog10': src/third_party/icu4c-57.1/source/i18n/decNumber.c:1524:14: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 1524 | w->lsu[1]=1; w->lsu[0]=0; /* .. */ | ^ src/third_party/icu4c-57.1/source/i18n/decNumber.h:87: note: at offset 1 into destination object 'lsu' of size 1 87 | decNumberUnit lsu[DECNUMUNITS]; | src/third_party/icu4c-57.1/source/i18n/decNumber.c:1524:14: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 1524 | w->lsu[1]=1; w->lsu[0]=0; /* .. */ | ^ src/third_party/icu4c-57.1/source/i18n/decNumber.h:87: note: at offset 1 into destination object 'lsu' of size 1 87 | decNumberUnit lsu[DECNUMUNITS]; | src/third_party/icu4c-57.1/source/i18n/decNumber.c: In function 'uprv_decNumberSquareRoot': src/third_party/icu4c-57.1/source/i18n/decNumber.c:2970:31: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 2970 | t->lsu[0]=9; t->lsu[1]=5; t->lsu[2]=2; | ^ src/third_party/icu4c-57.1/source/i18n/decNumber.h:87: note: at offset 1 into destination object 'lsu' of size 1 87 | decNumberUnit lsu[DECNUMUNITS]; | src/third_party/icu4c-57.1/source/i18n/decNumber.c:2970:44: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 2970 | t->lsu[0]=9; t->lsu[1]=5; t->lsu[2]=2; | ^ src/third_party/icu4c-57.1/source/i18n/decNumber.h:87: note: at offset 2 into destination object 'lsu' of size 1 87 | decNumberUnit lsu[DECNUMUNITS]; | Install file: "build/opt/mongo/mongo" as "mongo" src/third_party/icu4c-57.1/source/i18n/decNumber.c: In function 'uprv_decNumberLog10': src/third_party/icu4c-57.1/source/i18n/decNumber.c:1524:14: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 1524 | w->lsu[1]=1; w->lsu[0]=0; /* .. */ | ^ src/third_party/icu4c-57.1/source/i18n/decNumber.h:87: note: at offset 1 into destination object 'lsu' of size 1 87 | decNumberUnit lsu[DECNUMUNITS]; | src/third_party/icu4c-57.1/source/i18n/decNumber.c:1524:14: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 1524 | w->lsu[1]=1; w->lsu[0]=0; /* .. */ | ^ src/third_party/icu4c-57.1/source/i18n/decNumber.h:87: note: at offset 1 into destination object 'lsu' of size 1 87 | decNumberUnit lsu[DECNUMUNITS]; | src/third_party/icu4c-57.1/source/i18n/decNumber.c: In function 'uprv_decNumberSquareRoot': src/third_party/icu4c-57.1/source/i18n/decNumber.c:2970:31: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 2970 | t->lsu[0]=9; t->lsu[1]=5; t->lsu[2]=2; | ^ src/third_party/icu4c-57.1/source/i18n/decNumber.h:87: note: at offset 1 into destination object 'lsu' of size 1 87 | decNumberUnit lsu[DECNUMUNITS]; | src/third_party/icu4c-57.1/source/i18n/decNumber.c:2970:44: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 2970 | t->lsu[0]=9; t->lsu[1]=5; t->lsu[2]=2; | ^ src/third_party/icu4c-57.1/source/i18n/decNumber.h:87: note: at offset 2 into destination object 'lsu' of size 1 87 | decNumberUnit lsu[DECNUMUNITS]; | In function 'memcpy', inlined from 'unsafeStore' at src/mongo/base/data_type.h:98:0, inlined from 'unsafeStore' at src/mongo/base/data_type.h:158:32, inlined from 'unsafeStore' at src/mongo/base/data_type_endian.h:115:30, inlined from 'unsafeStore' at src/mongo/base/data_type.h:158:32, inlined from 'write' at src/mongo/base/data_view.h:85:30, inlined from 'setResultFlags' at src/mongo/db/dbmessage.h:180:41, inlined from 'setResultFlagsToOk' at src/mongo/db/dbmessage.h:184:23, inlined from 'done' at src/mongo/rpc/legacy_reply_builder.cpp:134:30: /usr/include/bits/string_fortified.h:29: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | In function 'memcpy', inlined from 'unsafeStore' at src/mongo/base/data_type.h:98:0, inlined from 'unsafeStore' at src/mongo/base/data_type.h:158:32, inlined from 'unsafeStore' at src/mongo/base/data_type_endian.h:115:30, inlined from 'unsafeStore' at src/mongo/base/data_type.h:158:32, inlined from 'write' at src/mongo/base/data_view.h:85:30, inlined from 'setResultFlags' at src/mongo/db/dbmessage.h:180:41, inlined from 'done' at src/mongo/rpc/legacy_reply_builder.cpp:132:26: /usr/include/bits/string_fortified.h:29: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | In function 'memcpy', inlined from 'unsafeStore' at src/mongo/base/data_type.h:98:0, inlined from 'unsafeStore' at src/mongo/base/data_type.h:158:32, inlined from 'unsafeStore' at src/mongo/base/data_type_endian.h:115:30, inlined from 'unsafeStore' at src/mongo/base/data_type.h:158:32, inlined from 'write' at src/mongo/base/data_view.h:85:30, inlined from 'setResultFlags' at src/mongo/db/dbmessage.h:180:41, inlined from 'setResultFlagsToOk' at src/mongo/db/dbmessage.h:184:23, inlined from 'done' at src/mongo/rpc/legacy_reply_builder.cpp:134:30: /usr/include/bits/string_fortified.h:29: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | In function 'memcpy', inlined from 'unsafeStore' at src/mongo/base/data_type.h:98:0, inlined from 'unsafeStore' at src/mongo/base/data_type.h:158:32, inlined from 'unsafeStore' at src/mongo/base/data_type_endian.h:115:30, inlined from 'unsafeStore' at src/mongo/base/data_type.h:158:32, inlined from 'write' at src/mongo/base/data_view.h:85:30, inlined from 'setResultFlags' at src/mongo/db/dbmessage.h:180:41, inlined from 'done' at src/mongo/rpc/legacy_reply_builder.cpp:132:26: /usr/include/bits/string_fortified.h:29: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | src/third_party/icu4c-57.1/source/i18n/decNumber.c: In function 'uprv_decNumberLog10': src/third_party/icu4c-57.1/source/i18n/decNumber.c:1524:14: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 1524 | w->lsu[1]=1; w->lsu[0]=0; /* .. */ | ^ src/third_party/icu4c-57.1/source/i18n/decNumber.h:87: note: at offset 1 into destination object 'lsu' of size 1 87 | decNumberUnit lsu[DECNUMUNITS]; | src/third_party/icu4c-57.1/source/i18n/decNumber.c:1524:14: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 1524 | w->lsu[1]=1; w->lsu[0]=0; /* .. */ | ^ src/third_party/icu4c-57.1/source/i18n/decNumber.h:87: note: at offset 1 into destination object 'lsu' of size 1 87 | decNumberUnit lsu[DECNUMUNITS]; | src/third_party/icu4c-57.1/source/i18n/decNumber.c: In function 'uprv_decNumberSquareRoot': src/third_party/icu4c-57.1/source/i18n/decNumber.c:2970:31: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 2970 | t->lsu[0]=9; t->lsu[1]=5; t->lsu[2]=2; | ^ src/third_party/icu4c-57.1/source/i18n/decNumber.h:87: note: at offset 1 into destination object 'lsu' of size 1 87 | decNumberUnit lsu[DECNUMUNITS]; | src/third_party/icu4c-57.1/source/i18n/decNumber.c:2970:44: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 2970 | t->lsu[0]=9; t->lsu[1]=5; t->lsu[2]=2; | ^ src/third_party/icu4c-57.1/source/i18n/decNumber.h:87: note: at offset 2 into destination object 'lsu' of size 1 87 | decNumberUnit lsu[DECNUMUNITS]; | Install file: "build/opt/mongo/mongod" as "mongod" Install file: "build/opt/mongo/mongos" as "mongos" scons: done building targets. + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.41259 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/mongo-buildroot + : + /bin/rm -rf -- /usr/src/tmp/mongo-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + cd mongo-4.4.10 + install -p -D -m 755 build/opt/mongo/mongod /usr/src/tmp/mongo-buildroot/usr/bin/mongod + install -p -D -m 755 build/opt/mongo/mongos /usr/src/tmp/mongo-buildroot/usr/bin/mongos + install -p -D -m 755 build/opt/mongo/mongo /usr/src/tmp/mongo-buildroot/usr/bin/mongo + mkdir -p /usr/src/tmp/mongo-buildroot/var/log/mongo + mkdir -p /usr/src/tmp/mongo-buildroot/var/run/mongo + mkdir -p /usr/src/tmp/mongo-buildroot/var/lib/mongo + mkdir -p /usr/src/tmp/mongo-buildroot/usr/share/man/man1 + cp debian/mongo.1 debian/mongod.1 debian/mongokerberos.1 debian/mongoldap.1 debian/mongos.1 /usr/src/tmp/mongo-buildroot/usr/share/man/man1/ + install -p -D -m 644 mongod.logrotate /usr/src/tmp/mongo-buildroot/etc/logrotate.d/mongod + install -p -D -m 755 mongod.init.alt /usr/src/tmp/mongo-buildroot/etc/rc.d/init.d/mongod + install -p -D -m 644 mongod.conf /usr/src/tmp/mongo-buildroot/etc/mongo/mongod.conf + install -p -D -m 644 mongod.sysconf /usr/src/tmp/mongo-buildroot/etc/sysconfig/mongod + install -p -D -m 644 mongod.service /usr/src/tmp/mongo-buildroot/lib/systemd/system/mongod.service + install -p -D -m 644 mongod.tmpfile /usr/src/tmp/mongo-buildroot/lib/tmpfiles.d/mongod.conf + install -p -D -m 644 mongos.logrotate /usr/src/tmp/mongo-buildroot/etc/logrotate.d/mongos + install -p -D -m 755 mongos.init.alt /usr/src/tmp/mongo-buildroot/etc/rc.d/init.d/mongos + install -p -D -m 644 mongos.conf /usr/src/tmp/mongo-buildroot/etc/mongo/mongos.conf + install -p -D -m 644 mongod.sysconf /usr/src/tmp/mongo-buildroot/etc/sysconfig/mongos + install -p -D -m 644 mongos.service /usr/src/tmp/mongo-buildroot/lib/systemd/system/mongos.service + install -p -D -m 644 mongod.tmpfile /usr/src/tmp/mongo-buildroot/lib/tmpfiles.d/mongos.conf + rm -fr build + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/mongo-buildroot (auto) Verifying and fixing files in /usr/src/tmp/mongo-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/mongo-buildroot/ (default) Compressing files in /usr/src/tmp/mongo-buildroot (auto) Adjusting library links in /usr/src/tmp/mongo-buildroot ./lib: (from :0) ./var/lib: (from :0) Verifying ELF objects in /usr/src/tmp/mongo-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) phdr[6]: unknown object file note type 32 with owner name '' at offset 48 phdr[6]: extra 72 bytes after last note verify-elf: WARNING: ./usr/bin/mongo: eu-elflint failed phdr[6]: unknown object file note type 32 with owner name '' at offset 48 phdr[6]: extra 72 bytes after last note verify-elf: WARNING: ./usr/bin/mongos: eu-elflint failed phdr[6]: unknown object file note type 32 with owner name '' at offset 48 phdr[6]: extra 72 bytes after last note verify-elf: WARNING: ./usr/bin/mongod: eu-elflint failed Processing files: mongo-4.4.10-alt1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.52648 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd mongo-4.4.10 + DOCDIR=/usr/src/tmp/mongo-buildroot/usr/share/doc/mongo-4.4.10 + export DOCDIR + rm -rf /usr/src/tmp/mongo-buildroot/usr/share/doc/mongo-4.4.10 + /bin/mkdir -p /usr/src/tmp/mongo-buildroot/usr/share/doc/mongo-4.4.10 + cp -prL README LICENSE-Community.txt /usr/src/tmp/mongo-buildroot/usr/share/doc/mongo-4.4.10 + chmod -R go-w /usr/src/tmp/mongo-buildroot/usr/share/doc/mongo-4.4.10 + chmod -R a+rX /usr/src/tmp/mongo-buildroot/usr/share/doc/mongo-4.4.10 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.7efIVm find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.JkpmSZ find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) Requires: /lib64/ld-linux-x86-64.so.2, libc.so.6(GLIBC_2.14)(64bit), libc.so.6(GLIBC_2.17)(64bit), libc.so.6(GLIBC_2.2.5)(64bit), libc.so.6(GLIBC_2.3)(64bit), libc.so.6(GLIBC_2.3.2)(64bit), libc.so.6(GLIBC_2.3.4)(64bit), libc.so.6(GLIBC_2.32)(64bit), libc.so.6(GLIBC_2.33)(64bit), libc.so.6(GLIBC_2.34)(64bit), libc.so.6(GLIBC_2.4)(64bit), libc.so.6(GLIBC_2.6)(64bit), libc.so.6(GLIBC_2.7)(64bit), libc.so.6(GLIBC_2.8)(64bit), libc.so.6(GLIBC_2.9)(64bit), libcrypto.so.1.1()(64bit) >= set:qivV21ZuBXFVJeYdgI11KXg8RGYKN9yzEQ4XZwjj0mlI4WNvckIbVs4dlTUbWGEIH9hIMWDSzpjcBIBMMAPf73URZAvlbh9ab96lrvXDTt3xF9LTGCyd1gX5hJZ4ecB34LH8wrFj02dZDsNyMZIOavNz6hpdok5i4WhT1XSZbZwcg2wRp1btQgYARbw0tZgV13xoti1UkY29N7j3n07yvRb1q3o15ZdVZqsQZdmsF4rnOP4y9bA10SJZojZjIGUdM2F0OXpIZpecnKhtfMc8Ed51wmVh7DZnS8CHy1BcUx89q6nAI19yexU46gW273PBZz4Zr8wVPOFe4F1rO6UbBxfEwveNUeTlC8apgZmnoDFMdE63SZ8BdfVZAmZC1heHUZ84SmfkKJmYbZdslA3ZrEOxC0x9RcQT9W, libcrypto.so.1.1(OPENSSL_1_1_0)(64bit), libcurl.so.4()(64bit) >= set:kgZtdjewuBSOM3YXjuKGePG5ZmMh21, libgcc_s.so.1(GCC_3.0)(64bit), libgcc_s.so.1(GCC_3.3.1)(64bit), libgcc_s.so.1(GCC_3.4)(64bit), libm.so.6(GLIBC_2.2.5)(64bit), libm.so.6(GLIBC_2.29)(64bit), libpcre.so.3()(64bit) >= set:ifEzEmZqSgz4, libpcrecpp.so.3()(64bit) >= set:kg2dwDBsyN260eKpIBlYoUD4p1, libresolv.so.2(GLIBC_2.9)(64bit), libsasl2.so.3()(64bit) >= set:lhKAh7QLm9CX2KJkvgupF6kxR7I14, libsnappy.so.1()(64bit) >= set:kh8426ZoWLUFk0, libssl.so.1.1()(64bit) >= set:mgBOGQ4m0CHg0tMAZsSi9lCf5SaCBOZbkPZeDyvQkrYm6hlBPvPIZkaxLh0NZufZvTcJoLT5hmLF1ZCLxs8dnkmtRTNZhrCfqs6kFZfT0uLsef, libssl.so.1.1(OPENSSL_1_1_0)(64bit), libstdc++.so.6(CXXABI_1.3)(64bit), libstdc++.so.6(CXXABI_1.3.13)(64bit), libstdc++.so.6(CXXABI_1.3.2)(64bit), libstdc++.so.6(CXXABI_1.3.3)(64bit), libstdc++.so.6(CXXABI_1.3.5)(64bit), libstdc++.so.6(CXXABI_1.3.7)(64bit), libstdc++.so.6(CXXABI_1.3.8)(64bit), libstdc++.so.6(GLIBCXX_3.4)(64bit), libstdc++.so.6(GLIBCXX_3.4.11)(64bit), libstdc++.so.6(GLIBCXX_3.4.14)(64bit), libstdc++.so.6(GLIBCXX_3.4.15)(64bit), libstdc++.so.6(GLIBCXX_3.4.18)(64bit), libstdc++.so.6(GLIBCXX_3.4.19)(64bit), libstdc++.so.6(GLIBCXX_3.4.20)(64bit), libstdc++.so.6(GLIBCXX_3.4.21)(64bit), libstdc++.so.6(GLIBCXX_3.4.22)(64bit), libstdc++.so.6(GLIBCXX_3.4.26)(64bit), libstdc++.so.6(GLIBCXX_3.4.29)(64bit), libstdc++.so.6(GLIBCXX_3.4.9)(64bit), libstemmer.so.0()(64bit) >= set:li9TCBZCGk8G7s, libtcmalloc.so.4()(64bit) >= set:niIZLmwI3ppme2vg5sw3JPCUJSY89DVQQ5gwBZ126PfCEf8Y90, libyaml-cpp.so.0.7()(64bit) >= set:niZo5uC5wZFCfc9FvyfBDSvRh293TzYLoe9Rmrqfik44NCb7IgHqXxDtRATOkbDLmCzqiK2OolcbuKe5H7LMJI7X0, libz.so.1()(64bit) >= set:kgb6dgbosIZqiYnVIgXh2gDaGXf1, libz.so.1(ZLIB_1.2.0)(64bit), rtld(GNU_HASH), rtld(GNU_UNIQUE) Requires(rpmlib): rpmlib(SetVersions) Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.jjRqeI Creating mongo-debuginfo package Processing files: mongo-server-mongod-4.4.10-alt1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.87195 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd mongo-4.4.10 + DOCDIR=/usr/src/tmp/mongo-buildroot/usr/share/doc/mongo-server-mongod-4.4.10 + export DOCDIR + rm -rf /usr/src/tmp/mongo-buildroot/usr/share/doc/mongo-server-mongod-4.4.10 + /bin/mkdir -p /usr/src/tmp/mongo-buildroot/usr/share/doc/mongo-server-mongod-4.4.10 + cp -prL README LICENSE-Community.txt /usr/src/tmp/mongo-buildroot/usr/share/doc/mongo-server-mongod-4.4.10 + chmod -R go-w /usr/src/tmp/mongo-buildroot/usr/share/doc/mongo-server-mongod-4.4.10 + chmod -R a+rX /usr/src/tmp/mongo-buildroot/usr/share/doc/mongo-server-mongod-4.4.10 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.EO8ocM find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.BXMvZX find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) Finding Requires(pre) (using /usr/lib/rpm/find-scriptlet-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.5JIlSQ Finding Requires(post) (using /usr/lib/rpm/find-scriptlet-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.KnL9L2 Finding Requires(preun) (using /usr/lib/rpm/find-scriptlet-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.DJB3Fd Provides: mongo-server Requires: /bin/sh, /etc/logrotate.d, /etc/rc.d/init.d, /etc/rc.d/init.d(SourceIfNotEmpty), /etc/rc.d/init.d(msg_reloading), /etc/rc.d/init.d(msg_usage), /etc/rc.d/init.d(start_daemon), /etc/rc.d/init.d(status), /etc/rc.d/init.d(stop_daemon), /etc/rc.d/init.d/functions, /lib64/ld-linux-x86-64.so.2, libc.so.6(GLIBC_2.10)(64bit), libc.so.6(GLIBC_2.14)(64bit), libc.so.6(GLIBC_2.17)(64bit), libc.so.6(GLIBC_2.2.5)(64bit), libc.so.6(GLIBC_2.3)(64bit), libc.so.6(GLIBC_2.3.2)(64bit), libc.so.6(GLIBC_2.3.4)(64bit), libc.so.6(GLIBC_2.32)(64bit), libc.so.6(GLIBC_2.33)(64bit), libc.so.6(GLIBC_2.34)(64bit), libc.so.6(GLIBC_2.4)(64bit), libc.so.6(GLIBC_2.6)(64bit), libc.so.6(GLIBC_2.7)(64bit), libc.so.6(GLIBC_2.8)(64bit), libc.so.6(GLIBC_2.9)(64bit), libcrypto.so.1.1()(64bit) >= set:qivV21ZusttxL1yd8Mt72FmBTdehs4BCoZDoq2MGyBgfZj6aSBseyCGrY5tlkSRA8mM9ecNkOm23jeZIN0uZfQnRikyOiyhRSTZpTt3xF9LTGCyd1gX5hJZ4ecB34LH8wrFj02dZDsNyMZIOavNz6hpdok5i4WhT1XSZbZwcg2wRp1btQgYARbw0tZgV13x8wdmeA4vcds1s8ZlZ21q3o15ZdVZqsQZdmsF4rnOP4y9bA10SJZojZjIaXZy0oIX6CbkAJwwSk40qB7tsWvS8GZA3u8iyCN59rgyEj0wIac6CbZD8Yn4MYpVk7yQwdp3YBOM7kMfDMfE18l8kU6kz1XuIIV9ZDOWT2ysmNXh2rH7aTmbZlWrKaO1ZBkVgjwMAq6WX4t, libcrypto.so.1.1(OPENSSL_1_1_0)(64bit), libcurl.so.4()(64bit) >= set:kgZtdjewuBSOM3YXjuKGePG5ZmMh21, libgcc_s.so.1(GCC_3.0)(64bit), libgcc_s.so.1(GCC_3.3.1)(64bit), libgcc_s.so.1(GCC_3.4)(64bit), libm.so.6(GLIBC_2.2.5)(64bit), libm.so.6(GLIBC_2.29)(64bit), libpcre.so.3()(64bit) >= set:ifEzEmZqSgz4, libpcrecpp.so.3()(64bit) >= set:kg2dwDBsyN26wZ5jPOzJIy73ZAyI, libresolv.so.2(GLIBC_2.9)(64bit), libsasl2.so.3()(64bit) >= set:lhKAh7QLm9CX2KJkvgupF6kxR7I14, libsnappy.so.1()(64bit) >= set:kgZAzbfgrg2TPaKOc3Z7NFk, libssl.so.1.1()(64bit) >= set:mgBOGQ4m0CHg0tMAZsSi9lCf5SaCBOZbkPZeDyvQkrYm6hlBPvPIZkaxLh0NZufZvTcJoLT5hmLF1ZCLxs8dnkmtRTNZhrCfqs6kFZfT0uLsef, libssl.so.1.1(OPENSSL_1_1_0)(64bit), libstdc++.so.6(CXXABI_1.3)(64bit), libstdc++.so.6(CXXABI_1.3.13)(64bit), libstdc++.so.6(CXXABI_1.3.2)(64bit), libstdc++.so.6(CXXABI_1.3.3)(64bit), libstdc++.so.6(CXXABI_1.3.5)(64bit), libstdc++.so.6(CXXABI_1.3.7)(64bit), libstdc++.so.6(CXXABI_1.3.8)(64bit), libstdc++.so.6(GLIBCXX_3.4)(64bit), libstdc++.so.6(GLIBCXX_3.4.11)(64bit), libstdc++.so.6(GLIBCXX_3.4.14)(64bit), libstdc++.so.6(GLIBCXX_3.4.15)(64bit), libstdc++.so.6(GLIBCXX_3.4.18)(64bit), libstdc++.so.6(GLIBCXX_3.4.19)(64bit), libstdc++.so.6(GLIBCXX_3.4.20)(64bit), libstdc++.so.6(GLIBCXX_3.4.21)(64bit), libstdc++.so.6(GLIBCXX_3.4.22)(64bit), libstdc++.so.6(GLIBCXX_3.4.26)(64bit), libstdc++.so.6(GLIBCXX_3.4.29)(64bit), libstdc++.so.6(GLIBCXX_3.4.9)(64bit), libstemmer.so.0()(64bit) >= set:li9TCBZCGk8G7s, libtcmalloc.so.4()(64bit) >= set:niIZLmwI3ppmeiYhX51x3sEtS4LR5swT3iePFFbw0bX31zV7jQDAtDca1, libyaml-cpp.so.0.7()(64bit) >= set:nhYNyDp1EmkwBoYxFAZlYFyTILEIWEgOwXhWncCAae9hhaVhyhg4IVOw5qlr7uSljKBFmerJczqiK2wNGcbuKe5mfe2TifS1, libz.so.1()(64bit) >= set:kgb6dgbWvUmqN0SnBULOpxSz4welkTv2, libz.so.1(ZLIB_1.2.0)(64bit), rtld(GNU_HASH), rtld(GNU_UNIQUE) Requires(interp): /bin/sh Requires(rpmlib): rpmlib(SetVersions) Requires(pre): /bin/sh, /usr/sbin/groupadd, /usr/sbin/useradd Requires(post): /bin/sh, /usr/sbin/post_service Requires(preun): /bin/sh, /usr/sbin/preun_service Obsoletes: mongo-server Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.GX9h0L Creating mongo-server-mongod-debuginfo package Processing files: mongo-server-mongos-4.4.10-alt1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.74909 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd mongo-4.4.10 + DOCDIR=/usr/src/tmp/mongo-buildroot/usr/share/doc/mongo-server-mongos-4.4.10 + export DOCDIR + rm -rf /usr/src/tmp/mongo-buildroot/usr/share/doc/mongo-server-mongos-4.4.10 + /bin/mkdir -p /usr/src/tmp/mongo-buildroot/usr/share/doc/mongo-server-mongos-4.4.10 + cp -prL README LICENSE-Community.txt /usr/src/tmp/mongo-buildroot/usr/share/doc/mongo-server-mongos-4.4.10 + chmod -R go-w /usr/src/tmp/mongo-buildroot/usr/share/doc/mongo-server-mongos-4.4.10 + chmod -R a+rX /usr/src/tmp/mongo-buildroot/usr/share/doc/mongo-server-mongos-4.4.10 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.gcL6Nk find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.Cdpqsw find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) Finding Requires(pre) (using /usr/lib/rpm/find-scriptlet-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.qKthMt Finding Requires(post) (using /usr/lib/rpm/find-scriptlet-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.SncEMs Finding Requires(preun) (using /usr/lib/rpm/find-scriptlet-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.Cb6Mxr Requires: /bin/sh, /etc/logrotate.d, /etc/rc.d/init.d, /etc/rc.d/init.d(SourceIfNotEmpty), /etc/rc.d/init.d(msg_reloading), /etc/rc.d/init.d(msg_usage), /etc/rc.d/init.d(start_daemon), /etc/rc.d/init.d(status), /etc/rc.d/init.d(stop_daemon), /etc/rc.d/init.d/functions, /lib64/ld-linux-x86-64.so.2, libc.so.6(GLIBC_2.14)(64bit), libc.so.6(GLIBC_2.17)(64bit), libc.so.6(GLIBC_2.2.5)(64bit), libc.so.6(GLIBC_2.3)(64bit), libc.so.6(GLIBC_2.3.2)(64bit), libc.so.6(GLIBC_2.3.4)(64bit), libc.so.6(GLIBC_2.32)(64bit), libc.so.6(GLIBC_2.33)(64bit), libc.so.6(GLIBC_2.34)(64bit), libc.so.6(GLIBC_2.4)(64bit), libc.so.6(GLIBC_2.6)(64bit), libc.so.6(GLIBC_2.7)(64bit), libc.so.6(GLIBC_2.8)(64bit), libc.so.6(GLIBC_2.9)(64bit), libcrypto.so.1.1()(64bit) >= set:qivV21ZusttxL1yd8Mt72FmBTdehs4BCoZDoq2MGyBgfZj6aSBseyCGrY5tlkSRA8mM9ecNkOm23jeZIN0uZfQnRikyOiyhRSTZpTt3xF9LTGCyd1gX5hJZ4ecB34LH8wrFj02dZDsNyMZIOavNz6hpdok5i4WhT1XSZbZwcg2wRp1btQgYARbw0tZgV13x8wdmeA4vcds1s8ZlZ21q3o15ZdVZqsQZdmsF4rnOP4y9bA10SJZojZjIaXZy0oIX6CbkAJwwSk40qB7tsWvS8GZA3u8iyCN59rgyEj0wIac6CbZD8Yn4MYpVk7yQwdp3YBOM7kMfDMfE18l8kU6kz1XuIIV9ZDOWT2ysmNXh2rH7aTmbZlWrKaO1ZBkVgjwMAq6WX4t, libcrypto.so.1.1(OPENSSL_1_1_0)(64bit), libcurl.so.4()(64bit) >= set:kgZtdjewuBSOM3YXjuKGePG5ZmMh21, libgcc_s.so.1(GCC_3.0)(64bit), libgcc_s.so.1(GCC_3.3.1)(64bit), libgcc_s.so.1(GCC_3.4)(64bit), libm.so.6(GLIBC_2.2.5)(64bit), libm.so.6(GLIBC_2.29)(64bit), libpcre.so.3()(64bit) >= set:ifEzEmZqSgz4, libpcrecpp.so.3()(64bit) >= set:kg2dwDBsyN26wZ5jPOzJIy73ZAyI, libresolv.so.2(GLIBC_2.9)(64bit), libsasl2.so.3()(64bit) >= set:lhKAh7QLm9CX2KJkvgupF6kxR7I14, libsnappy.so.1()(64bit) >= set:khZA36TKxfGZyua5, libssl.so.1.1()(64bit) >= set:mgBOGQ4m0CHg0tMAZsSi9lCf5SaCBOZbkPZeDyvQkrYm6hlBPvPIZkaxLh0NZufZvTcJoLT5hmLF1ZCLxs8dnkmtRTNZhrCfqs6kFZfT0uLsef, libssl.so.1.1(OPENSSL_1_1_0)(64bit), libstdc++.so.6(CXXABI_1.3)(64bit), libstdc++.so.6(CXXABI_1.3.13)(64bit), libstdc++.so.6(CXXABI_1.3.2)(64bit), libstdc++.so.6(CXXABI_1.3.3)(64bit), libstdc++.so.6(CXXABI_1.3.5)(64bit), libstdc++.so.6(CXXABI_1.3.7)(64bit), libstdc++.so.6(CXXABI_1.3.8)(64bit), libstdc++.so.6(GLIBCXX_3.4)(64bit), libstdc++.so.6(GLIBCXX_3.4.11)(64bit), libstdc++.so.6(GLIBCXX_3.4.14)(64bit), libstdc++.so.6(GLIBCXX_3.4.15)(64bit), libstdc++.so.6(GLIBCXX_3.4.18)(64bit), libstdc++.so.6(GLIBCXX_3.4.19)(64bit), libstdc++.so.6(GLIBCXX_3.4.20)(64bit), libstdc++.so.6(GLIBCXX_3.4.21)(64bit), libstdc++.so.6(GLIBCXX_3.4.22)(64bit), libstdc++.so.6(GLIBCXX_3.4.26)(64bit), libstdc++.so.6(GLIBCXX_3.4.29)(64bit), libstdc++.so.6(GLIBCXX_3.4.9)(64bit), libstemmer.so.0()(64bit) >= set:li9TCBZCGk8G7s, libtcmalloc.so.4()(64bit) >= set:niIZLmwI3ppmeiYhX51x3sEtS4LR5swT3iePFFbw0bX31zV7jQDAtDca1, libyaml-cpp.so.0.7()(64bit) >= set:nhYNyDp1EmkwBoYxFAZlYFyTILEIWEgOwXhWncCAae9hhaVhyhg4IVOw5qlr7uSljKBFmerJczqiK2wNGcbuKe5mfe2TifS1, libz.so.1()(64bit) >= set:kgb6dgbC5ncwZ5BULOpxSz4welkTv2, libz.so.1(ZLIB_1.2.0)(64bit), rtld(GNU_HASH), rtld(GNU_UNIQUE) Requires(interp): /bin/sh Requires(rpmlib): rpmlib(SetVersions) Requires(pre): /bin/sh, /usr/sbin/groupadd, /usr/sbin/useradd Requires(post): /bin/sh, /usr/sbin/post_service Requires(preun): /bin/sh, /usr/sbin/preun_service Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.3GwYKq Creating mongo-server-mongos-debuginfo package Processing files: mongo-debuginfo-4.4.10-alt1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.9BiN5C find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.JNU29E find-requires: running scripts (debuginfo) Requires: mongo = 4.4.10-alt1, /usr/lib/debug/lib64/ld-linux-x86-64.so.2.debug, debug64(libc.so.6), debug64(libcrypto.so.1.1), debug64(libcurl.so.4), debug64(libgcc_s.so.1), debug64(libm.so.6), debug64(libpcre.so.3), debug64(libpcrecpp.so.3), debug64(libresolv.so.2), debug64(libsasl2.so.3), debug64(libsnappy.so.1), debug64(libssl.so.1.1), debug64(libstdc++.so.6), debug64(libstemmer.so.0), debug64(libtcmalloc.so.4), debug64(libyaml-cpp.so.0.7), debug64(libz.so.1) Processing files: mongo-server-mongod-debuginfo-4.4.10-alt1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.DhrCgB find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.1bBeMw find-requires: running scripts (debuginfo) Requires: mongo-server-mongod = 4.4.10-alt1, /usr/lib/debug/lib64/ld-linux-x86-64.so.2.debug, debug64(libc.so.6), debug64(libcrypto.so.1.1), debug64(libcurl.so.4), debug64(libgcc_s.so.1), debug64(libm.so.6), debug64(libpcre.so.3), debug64(libpcrecpp.so.3), debug64(libresolv.so.2), debug64(libsasl2.so.3), debug64(libsnappy.so.1), debug64(libssl.so.1.1), debug64(libstdc++.so.6), debug64(libstemmer.so.0), debug64(libtcmalloc.so.4), debug64(libyaml-cpp.so.0.7), debug64(libz.so.1) Processing files: mongo-server-mongos-debuginfo-4.4.10-alt1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.olX1OF find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.wAMiXh find-requires: running scripts (debuginfo) Requires: mongo-server-mongos = 4.4.10-alt1, /usr/lib/debug/lib64/ld-linux-x86-64.so.2.debug, debug64(libc.so.6), debug64(libcrypto.so.1.1), debug64(libcurl.so.4), debug64(libgcc_s.so.1), debug64(libm.so.6), debug64(libpcre.so.3), debug64(libpcrecpp.so.3), debug64(libresolv.so.2), debug64(libsasl2.so.3), debug64(libsnappy.so.1), debug64(libssl.so.1.1), debug64(libstdc++.so.6), debug64(libstemmer.so.0), debug64(libtcmalloc.so.4), debug64(libyaml-cpp.so.0.7), debug64(libz.so.1) Adding to mongo-debuginfo a strict dependency on mongo Adding to mongo-server-mongod-debuginfo a strict dependency on mongo-server-mongod Adding to mongo-server-mongos-debuginfo a strict dependency on mongo-server-mongos warning: File(s) packaged into both mongo-4.4.10-alt1 and mongo-server-mongod-4.4.10-alt1: /usr/share/man/man1/mongod.1.xz warning: File(s) packaged into both mongo-4.4.10-alt1 and mongo-server-mongos-4.4.10-alt1: /usr/share/man/man1/mongos.1.xz Wrote: /usr/src/RPM/RPMS/x86_64/mongo-4.4.10-alt1.x86_64.rpm (w2T8.xzdio) Wrote: /usr/src/RPM/RPMS/x86_64/mongo-server-mongod-4.4.10-alt1.x86_64.rpm (w2T8.xzdio) Wrote: /usr/src/RPM/RPMS/x86_64/mongo-server-mongos-4.4.10-alt1.x86_64.rpm (w2T8.xzdio) Wrote: /usr/src/RPM/RPMS/x86_64/mongo-debuginfo-4.4.10-alt1.x86_64.rpm (w2T8.xzdio) Wrote: /usr/src/RPM/RPMS/x86_64/mongo-server-mongod-debuginfo-4.4.10-alt1.x86_64.rpm (w2T8.xzdio) Wrote: /usr/src/RPM/RPMS/x86_64/mongo-server-mongos-debuginfo-4.4.10-alt1.x86_64.rpm (w2T8.xzdio) 16044.70user 804.36system 1:18:09elapsed 359%CPU (0avgtext+0avgdata 12182784maxresident)k 0inputs+0outputs (0major+360776373minor)pagefaults 0swaps 16062.62user 811.36system 1:18:33elapsed 357%CPU (0avgtext+0avgdata 12182784maxresident)k 78104inputs+0outputs (45574major+361352618minor)pagefaults 0swaps